The peer advertise add-path command configures the maximum number of routes that the device can send to a specified BGP peer.
The undo peer advertise add-path command restores the default configurations.
By default, the device sends only the optimal route to a BGP peer.
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
The value is in dotted decimal notation. |
path-number path-number |
Specifies the maximum number of routes that the device can send. |
The value is an integer ranging from 2 to 128. |
ipv6-address |
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
After BGP Add-Path is configured on an RR, the RR needs to send routes to a specified BGP peer. To configure the maximum number of routes that the RR can send to the peer, run the peer advertise add-path command. The actual number of routes that the RR can send to the peer is the smaller one of the value configured using the peer advertise add-path command and the actual number of routes selected by the RR. If the maximum number of routes that the RR can send to the peer is less than the actual number of routes selected by the RR, the RR selects the optimal and Add-Path routes based on the BGP route selection rules.
Prerequisites
The following operations have been performed:
Precautions
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 10.1.1.1 enable [*HUAWEI-bgp-af-evpn] peer 10.1.1.1 advertise add-path path-number 3