Configure IPv6 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 caused 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.
- IPv6 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 13-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
|
-
|
Enter the BGP IPv6 unicast configuration mode
|
address-family ipv6 unicast
|
-
|
Configure EBGP to coordinate with BFD.
|
neighbor { neighbor-address | peer-group-name } fall-over bfd [single-hop]
|
Mandatory.
By default, the BFD function is disabled for a neighbor.
|
Exit the BGP IPv6 unicast configuration mode
|
exit-address-family
|
-
|
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 1000s.
|
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 1000s.
|
Configure the multiple of BFD session detection timeout.
|
bfd multiplier number
|
Optional.
By default, the multiple of BFD session detection timeout is 5.
|
![note](/storage/images/Document/Maipu/note-icon.jpg)
-
For the related configuration of BFD, refer to the reliability technology-BFD technical manual and BFD configuration manual.
Configure IBGP to Coordinate with BFD
The coordination between IBGP and BFD is based on a multi-hop BFD session, and BFD session parameters need to be configured in BGP mode.
Table 13-47 Configure IBGP to coordinate with BFD
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the BGP configuration mode.
|
router bgp autonomous-system
|
-
|
Enter the BGP IPv6 unicast configuration mode
|
address-family ipv6 unicast
|
-
|
Configure IBGP to coordinate with BFD.
|
neighbor { neighbor-address | peer-group-name } fall-over bfd [single-hop]
|
Mandatory.
By default, the BFD function is disabled for a neighbor.
|
Configure the minimum receive interval of the BFD session.
|
bfd min-receive-interval milliseconds
|
Optional.
By default, the minimum receive interval of a BFD session is 1000s.
|
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 1000s.
|
Configure the multiple of BFD session detection timeout.
|
bfd multiplier number
|
Optional.
By default, the multiple of BFD session detection timeout is 5.
|