peer prefix-sid (BGP-VPNv6 address family view)

Function

The peer prefix-sid command enables a device to exchange prefix SIDs with a specified IPv6 peer.

The undo peer prefix-sid command disables a device from exchanging prefix SIDs with a specified IPv6 peer.

This function is disabled by default.

Format

peer peerGroupName prefix-sid [ advertise-srv6-locator ]

undo peer peerGroupName prefix-sid [ advertise-srv6-locator ]

Parameters

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.

-

Views

BGP-VPNv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In a VPNv6 over SRv6 scenario, to enable a device to exchange IPv6 prefix SIDs with a specified IPv6 peer group, run the peer prefix-sid command in the BGP VPNv6 address family view.

In a VPNv6 over SRv6 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 aggregated by the P device between PEs, the remote PE can learn only the locator route aggregated by 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 encapsulates locator length information in 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.

Example

# Enable a device to exchange prefix SIDs with a specified IPv6 peer.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] group a internal
[*HUAWEI-bgp] ipv6-family vpnv6
[*HUAWEI-bgp-af-vpnv6] peer a enable
[*HUAWEI-bgp-af-vpnv6] peer a prefix-sid
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >