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.
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.
<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