Configure BGP to Coordinate with BFD
Usually, there are still some intermediate devices between BGP neighbors. When an intermediate device becomes faulty, the BGP session is normal within the hold time, and the link fault cased by the intermediate device cannot be responded to in time. Bidirectional Forwarding Detection (BFD) provides a method for quickly detecting the status of a line between two devices. After BFD is enabled for BGP devices, if a line between two devices becomes faulty, BFD can quickly find the line fault and notifies BGP of the fault. It triggers BGP to quickly disconnect the session and quickly switch over to the backup line, achieving fast switchover of routes.
Configuration Condition
Before configuring BGP to coordinate with BFD, ensure that:
- BGP is enabled.
- BGP neighbors are configured and a session is set up successfully.
Configure EBGP to Coordinate with BFD
The coordination between EBGP and BFD is based on a single-hop BFD session, and BFD session parameters need to be configured in interface mode.
Table 12-46 Configure EBGP to coordinate with BFD
Step
|
Command
|
Description
|
Enter the global configuration mode. |
configure terminal |
-
|
Enter the BGP configuration mode.
|
router bgp autonomous-system
|
-
|
Configure EBGP to coordinate with BFD.
|
neighbor { neighbor-address | peer-group-name } fall-over bfd
|
Mandatory.
By default, the BFD function is disabled for a neighbor.
|
Exit the BGP configuration mode.
|
exit
|
-
|
Enter the interface configuration mode.
|
interface interface-name
|
-
|
Configure the minimum receive interval of a BFD session.
|
bfd min-receive-interval milliseconds
|
Optional.
By default, the minimum receive interval of a BFD session is 1000ms.
|
Configure the minimum transmit interval of the BFD session.
|
bfd min-transmit-interval milliseconds
|
Optional.
By default, the minimum transmit interval of a BFD session is 1000ms.
|
Configure the multiple of BFD session detection timeout.
|
bfd multiplier number
|
Optional.
By default, the multiple of BFD session detection timeout is 5.
|
-
For the related configuration of BFD, refer to the reliability technology-BFD technical manual and BFD configuration manual.