The peer prefix-sid command enables a device to exchange IPv4 prefix SIDs with a specified IPv6 peer group.
The undo peer prefix-sid command disables a device from exchanging IPv4 prefix SIDs with a specified IPv6 peer group.
This function is disabled by default.
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
advertise-srv6-locator |
Uses the SRv6 Services TLV (TLV Type 5) to carry SRv6 SID information, and uses the SRv6 SID Structure sub-sub-TLV to carry locator length information. |
- |
Usage Scenario
In an global IPv6 over SRv6 BE scenario, To enable BGP to exchange IPv6 route information with the specified IPv6 peer group in the BGP IPv6 address family view, run the peer enable command. To enable a device to exchange IPv6 prefix SIDs with a specified IPv6 peer group, run the peer prefix-sid command.
In a public network IPv6 over SRv6 BE scenario where BFD is used to monitor a locator's reachability, if the primary path fails, BFD goes down, triggering auto FRR to perform path switching. However, if locator routes are summarized by a P device between PEs, the remote PE can learn only the locator route obtained after routes from the local PE are summarized. Since BFD detection on the remote PE depends on the peer IPv6 address (locator address of the local PE) bound to the BFD session, BFD fails in this case and auto FRR cannot be triggered to perform path switching. To resolve this problem, specify the advertise-srv6-locator parameter when you run the peer prefix-sid command on the local PE so that the BGP routes that the local PE advertises to the remote PE carry the locator length information. The remote PE uses the SRv6 SID and locator length information carried in the received routes to calculate the local PE's locator. In this way, the peer IPv6 address bound to the BFD session on the remote PE matches the IPv6 address of the local PE's locator, allowing BFD to take effect. In this case, if the primary path fails, auto FRR is triggered to perform path switching.