Configuring BFD for OSPF on a specified interface helps speed up OSPF convergence in the case of an interface failure.
After BFD for OSPF is configured on a specified interface and the interface becomes faulty, the router rapidly detects the fault and instructs OSPF to recalculate routes. This speeds up OSPF convergence. When the OSPF neighbor relationship goes Down, the BFD session between OSPF neighbors is dynamically deleted.
Before configuring BFD for OSPF, enable BFD globally.
An interface in this case may be a physical interface or a GRE tunnel interface. If BFD is enabled on a GRE tunnel interface, millisecond-level fault detection can be implemented for the GRE tunnel.
The system view is displayed.
BFD is globally configured.
Return to the system view.
The interface view is displayed.
BFD for OSPF is configured, and the default parameter values are used to establish a BFD session.
If BFD is enabled globally and the neighbor relationships on the interface are in the Full state, OSPF creates a BFD session with default parameter values for the interface.
The ospf bfd enable command can be run only in the VLANIF interface view.
The configuration of BFD for OSPF on an interface takes precedence over that in the OSPF process.
BFD session parameters are modified.
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.
For example:
Then:
The OSPF interface is enabled to adjust the cost based on BFD.
The interface-specific BFD-associated cost value has a higher priority than the process-specific BFD-associated cost value.
The configuration is committed.