segment-routing ipv6 locator (BGP-VPN instance IPv6 address family view)

Function

The segment-routing ipv6 locator command enables a device to add SIDs into private network routes.

The undo segment-routing ipv6 locator command disables a device from adding SIDs into private network routes.

By default, the private network routes do not have SIDs.

Format

segment-routing ipv6 locator locator-name

undo segment-routing ipv6 locator [ locator-name ]

Parameters

Parameter Description Value
locator-name

Specifies the name of a SID node route locator, which was configured through the locator command.

The value is a string of 1 to 31 case-sensitive characters. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In SRv6 VPN, private network route information of VPN instance is transferred using BGP.

After the BGP VPNv6 neighbor is set up and the peer ipv6-address prefix-sid command is enabled, the BGP peers can exchange the private network routing information carrying the SID attributes through the BGP VPNv6 neighbor.

Precautions

The configuration fails if the operation code-specific END.DT4 VPN of the locator does not match the private network VPN instance or the specified locator does not exist.

Example

# Enable a device to send private network routes that carry SIDs, and enable the SID dynamic allocation capability.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] locator test ipv6-prefix 11:22::33:4 96 static 32
[*HUAWEI-segment-routing-ipv6-locator] quit
[*HUAWEI-segment-routing-ipv6] quit
[*HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpn1-af-ipv6] vpn-target 100:1
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vpn1
[*HUAWEI-bgp-6-vpn1] segment-routing ipv6 locator test
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >