Configure OSPF to Coordinate with BFD
Configuration Condition
Before configuring OSPF to coordinate with BFD, ensure that:
- Interface IP addresses have been configured so that neighbor nodes are reachable at the network layer.
- Enable OSPF.
Configure OSPF to Coordinate with BFD
Bidirectional Forwarding Detection (BFD) provides a method for quickly detecting the status of a line between two devices. If BFD is started between two adjacent OSPF devices, if the line between two devices becomes faulty, BFD quickly detects the fault and informs OSPF of the fault. Then, it triggers OSPF to start route calculation and switch over to the backup line, achieving fast switchover of routes.
Table 7-35 Configuring OSPF to Coordinate with BFD
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enter the interface configuration mode.
|
interface interface-name
|
-
|
Enable or disable BFD on the specified OSPF interface.
|
ip ospf bfd [ ip-address | disable ]
|
Mandatory.
By default, the BFD function is disabled.
|
Enter the global configuration mode.
|
exit
|
-
|
Enter the OSPF configuration mode.
|
router ospf process-id [ vrf vrf-name ]
|
-
|
Enable BFD on all interfaces of the OSPF process.
|
bfd all-interface
|
Optional.
|
![note](/storage/images/Document/Maipu/note-icon.jpg)
-
If BFD is configured both in OSPF configuration mode and interface configuration mode, the BFD configuration on the interface has the higher priority.