The peer capability-advertise add-path command enables the Add-Path function.
The undo peer capability-advertise add-path command restores the default setting.
By default, the Add-Path function is disabled.
peer peerIpv4Addr capability-advertise add-path { both | receive | send }
peer peerIpv6Addr capability-advertise add-path { both | receive | send }
undo peer peerIpv4Addr capability-advertise add-path { both | receive | send }
undo peer peerIpv6Addr capability-advertise add-path { both | receive | send }
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IPv4 address of a peer. |
The value is in dotted decimal notation. |
both |
Enables the RR to receive Add-Path routes from and send Add-Path routes to a specified IBGP peer. |
- |
receive |
Enables the RR to receive Add-Path routes from a specified IBGP peer. |
- |
send |
Enables the RR to send Add-Path routes to a specified IBGP peer. |
- |
peerIpv6Addr |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
Usage Scenario
There are multiple optional BGP functions when a BGP peer advertises routes to its peer. The optional BGP functions include Add-Path. You can run the peer capability-advertise add-path command to enable or disable Add-Path function based on the needs on the live network.
Prerequisites
Enable the peer in current view using peer enable command.
Configuration Impact
If you enable or disable the Add-Path function, the BGP peer relationship will be re-established, which can lead to a temporary network interruption. Therefore, exercise caution when running the related commands.
Precautions
If a peer is specified when the peer capability-advertise add-path command is run, a peer group is specified when the peer advertise best-external command is run, and then the peer is added to the peer group, the peer cannot inherit the configuration of the peer advertise best-external command from the peer group.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 capability-advertise add-path receive