BGP additional-paths can be enabled for a specific peer device (neighbor) under a BGP address family. In addition, configuration options are available to control the additional-paths that are advertised to neighbors.
Before completing this task, the set of paths eligible for selection as additional-paths must be configured by using the additional-paths select command, under the relevant address family. An example is provided at the end of this task that shows all the configuration steps in order.
Perform the following task to enable additional-paths on a specific peer device and to specify the additional routes to be advertised by the peer, under the IPv4 unicast address family.
device# configure terminal
device(config)# router bgp
device(config-bgp)# address-family ipv4 unicast
device(config-bgp-ipv4u)# neighbor 10.60.60.20 additional-paths receive send
Note
Changes in the capability of receiving or sending additional-paths are reflected only after the BGP session is restarted.device(config-bgp-ipv4u)# neighbor 10.60.60.20 additional-paths advertise all
device# show ip bgp neighbors '+': Data in InQueue '>': Data in OutQueue '-': Clearing '*': Update Policy 'c': Group change 'p': Group change Pending 'r': Restarting 's': Stale '^': Up before Restart '<': EOR waiting 1 IP Address: 10.60.60.20, AS: 200 (IBGP), RouterID: 10.60.60.20, VRF: default-vrf State: ESTABLISHED, Time: 4h3m28s, KeepAliveTime: 60, HoldTime: 180 KeepAliveTimer Expire in 0 seconds, HoldTimer Expire in 159 seconds Minimal Route Advertisement Interval: 0 seconds RefreshCapability: Received Address Family : IPV4 Unicast Configured with Add-Path(send receive)capability Received Add-Path (send receive)capability in open msg Negotiated Add-Path(send receive)capability Messages: Open Update KeepAlive Notification Refresh-Req Sent : 1 1 275 0 0 Received: 1 1 275 0 0 Last Update Time: NLRI Withdraw NLRI Withdraw Tx: 4h3m28s --- Rx: 4h3m28s ---
The following example first shows how to configure all paths as eligible for selection as additional-paths under the IPv4 address family. It then shows how to enable receiving and sending additional-paths on a specific peer device (10.60.60.20) and configures the advertisement of all paths by 10.60.60.20.
device# configure terminal device(config)# router bgp device(config-bgp)# address-family ipv4 unicast device(config-bgp-ipv4u)# additional-paths select all device(config-bgp-ipv4u)# neighbor 10.60.60.20 additional-paths receive send device(config-bgp-ipv4u)# neighbor 10.60.60.20 additional-paths advertise all
After completing this task, restart the BGP session to activate the new additional-paths capability configuration.