To allow a switch to rapidly detect failures occurring on a specific interface, you can configure BFD for OSPF on the interface. When detecting a failure, the switch then instructs OSPF to recalculate routes, speeding up OSPF convergence. If the OSPF neighbor relationship set up on this interface goes Down, the BFD session between the OSPF neighbors is dynamically deleted.
Before configuring BFD for OSPF on an interface, you need to enable BFD globally.
Perform the following steps on a switch:
The system view is displayed.
The interface view is displayed.
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
BFD is enabled on the OSPF interface and a BFD session is set up.
If parameters need to be set for BFD sessions, run the ospf bfd { min-rx-interval receive-interval | min-tx-interval transmit- interval | detect-multiplier multiplier-value } * command.
Default values of receive-interval, transmit-interval, and multiplier-value are recommended. That is, the preceding command can be skipped.
The parameters need to be configured based on the network status and network reliability requirements. A short interval between BFD packet transmissions can be configured if high network reliability is required.
For example, if:
Then: