The segment-routing ipv6 locator command enables a device to add SIDs into public network routes.
The undo segment-routing ipv6 locator command disables a device from adding SIDs into public network routes.
By default, the public network routes do not have SIDs.
Usage Scenario
By default,public IPv6 unicast routes do not have SIDs,the segment-routing ipv6 locator command enables a device to add SIDs in public network routes.
After the BGP-IPV6 neighbor is set up and the peer ipv6-address prefix-sid command is enabled in the IPv6 address family unicast view,the BGP peers can exchange the public network routing information carrying the SID attributes through the BGP-IPV6 neighbor.Prerequisites
The name of the SID node route locator has been configured using the locator command.
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator a ipv6-prefix 11:: 64 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family unicast [*HUAWEI-bgp-af-ipv6] segment-routing ipv6 locator a