BGP fast-external-fallover

This command is enabled by default on CISCO IOS. The command terminates external BGP sessions of any directly adjacent peer if the link used to reach the peer goes down; without waiting for the hold-down timer to expire.
Although this feature improves the BGP conversion time, it may lead to great instability in your BGP table due to a flapping interface.

The following example shows R1 & R2 with an EBGP session between them configured as follows:

R1(config-if)#router bgp 100
R1(config-router)#nei 131.108.2.2 remot 200

R2(config)#router bgp 200
R2(config-router)#nei 131.108.2.1 remot 100

bgp fast-external-fallover enabled:

By shutting down the interface connecting between R1 & R2; R1 immediately resets the peering session without waiting for the hold-down time to expire as shown in the debug output below

R1(config-if)#int s1/0
R1(config-if)#shut
R1(config-if)#
*Mar 8 13:58:59.510: BGP: 131.108.2.2 resetting - interface Serial1/0 down
*Mar 8 13:58:59.578: BGPNSF state: 131.108.2.2 went from nsf_not_active to nsf_not_active
*Mar 8 13:58:59.582: BGP: 131.108.2.2 went from Established to Idle
*Mar 8 13:58:59.582: %BGP-5-ADJCHANGE: neighbor 131.108.2.2 Down Interface flap
*Mar 8 13:58:59.590: BGP: 131.108.2.2 closing

bgp fast-external-fallover disabled:

After shutting the interface connecting between R1 & R2 down the session remains up until the hold-down timer expires as shown in the debug output below

R1(config)#router bgp 100
R1(config-router)#no bgp fast-external-fallover

R1(config-if)#
*Mar 8 14:04:44.530: BGP: 131.108.2.2 connection timed out 180028ms (last update) 180000ms (hold time)
*Mar 8 14:04:44.534: BGP: 131.108.2.2 went from Established to Closing
*Mar 8 14:04:44.534: %BGP-5-ADJCHANGE: neighbor 131.108.2.2 Down BGP Notification sent
*Mar 8 14:04:44.538: %BGP-3-NOTIFICATION: sent to neighbor 131.108.2.2 4/0 (hold time expired) 0 bytes
*Mar 8 14:04:44.542: BGP: 131.108.2.2 send message type 3, length (incl. header) 21
*Mar 8 14:04:45.550: BGP: 131.108.2.2 local error close after sending NOTIFICATION
*Mar 8 14:04:45.558: BGPNSF state: 131.108.2.2 went from nsf_not_active to nsf_not_active
*Mar 8 14:04:45.562: BGP: 131.108.2.2 went from Closing to Idle
*Mar 8 14:04:45.562: BGP: 131.108.2.2 closing

One Final Note:

The command neighbor x.x.x.x fall-over can be used for fast deactivation of both EBGP or IBGP neighbors. This command is configured per neighbor and it terminates the session once the route to the neighbor is lost.

Check Also

Best AI tools list