After BFD for OSPF is enabled, when a link fails, the device rapidly detects the failure, notifies the OSPF process or interface of the fault, and instructs OSPF to recalculate routes. This speeds up OSPF network convergence.
Before configuring BFD for OSPF, complete the following task:
Configuring IP addresses for interfaces to ensure that neighboring routers are reachable at the network layer.
After BFD for OSPF is configured, when detecting a link fault, BFD rapidly notifies the routers on both ends of the link of the fault, triggering rapid OSPF convergence. When the OSPF neighbor relationship goes Down, the BFD session will be dynamically deleted.
Before configuring BFD for OSPF, enable BFD globally.
Perform the following steps on the FWs between which a BFD session is to be created.
system-view
bfd
quit
ospf [ process-id ]
bfd all-interfaces enable
The default parameter values are used to create a BFD session.
If all the interfaces in a certain process are configured with BFD and their neighbor relationships are in the Full state, OSPF creates BFD sessions with default parameter values on all the interfaces in the process.
bfd all-interfaces { min-rx-interval receive-interval | min-tx-interval transmit-interval | detect-multiplier multiplier-value | frr-binding } *
You can skip this step. The default interval at which BFD packets are transmitted and the default detection multiplier are recommended.
The parameters are configured based on the network status and network reliability requirements. A short interval at which BFD packets are transmitted can be configured for a link that has a higher requirement for reliability. A long interval at which BFD packets are transmitted can be configured for a link that has a lower requirement for reliability.
After BFD for OSPF is configured, all interfaces on which neighbor relationships are Full in the OSPF process will create BFD sessions. To prevent specific interfaces from being enabled with BFD, disable these interfaces from dynamically creating BFD sessions.