The peer prefix-sid command enables a device to exchange prefix SIDs with a specified peer group.
The undo peer prefix-sid command disables a device from exchanging prefix SIDs with a specified peer group.
By default, a device is disabled from exchanging prefix SIDs with a specified peer group.
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 a public network IPv4 over SRv6 BE scenario, to enable a device to exchange prefix SIDs with a specified peer group, run the peer prefix-sid command in the BGP IPv4 address family view.
In a public network IPv4 over SRv6 BE scenario, BFD is used to detect locator reachability. If the primary path fails, BFD detects the Down event and triggers auto FRR to switch traffic to another path. After locator routes are summarized by the P between PEs, the remote PE can learn only the summary locator route from the local PE. However, BFD detection depends on the peer IPv6 address (local locator address) bound to the BFD session. As a result, BFD fails and auto FRR cannot be triggered. To address this problem, configure advertise-srv6-locator on the local PE so that the local PE adds locator length information to the BGP routes to be advertised to the remote PE. The remote PE then calculates the local locator based on the SRv6 SID and locator length information carried in the BGP routes. If the peer IPv6 address bound to a BFD session matches the IPv6 address of the local locator, BFD takes effect. If the primary path fails, auto FRR is triggered to switch traffic to another path.