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 IPv4 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 IPv4 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 locator command has been run to define a SID node route locator.
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator a ipv6-prefix 11::11 64 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] segment-routing ipv6 locator a