You can configure BFD features on the link running OSPF in the scenarios where data transmission poses high requirements on timeliness and OSPF convergence needs to be sped up upon link status changes.
Before you configure BFD-OSPF interworking, complete the following tasks on devices at both ends:
Note that BFD-OSPF interworking needs to be configured on devices at both ends.
You can select one of the following modes to configure BFD-OSPF interworking:
Enable BFD in the OSPF process.
To enable BFD on all interfaces in the OSPF process, enable BFD on all interfaces of devices at both ends of the link where the BFD session is to be established.
Enable BFD on the interface.
The priority of BFD on the interface is higher than that of BFD in the OSPF process.
To enable BFD on certain interfaces or enable certain interfaces to rapidly identify link faults in the case that BFD is enabled in the OSPF process, you can enable BFD on the specified interface.
system-view
Access the OSPF view.
ospf [ process-id ]
Enable BFD in the OSPF process and create BFD sessions.
bfd all-interfaces enable
After BFD is enabled in the OSPF process, BFD sessions are created on all interfaces whose neighbor status is Full in the process.
(Optional) Configure BFD session parameters.
bfd all-interfaces { detect-multiplier multiplier-value | min-rx-interval receive-interval | min-tx-interval transmit-interval } *
Return to the system view.
quit
Access the interface view.
interface interface-type interface-number
(Optional) Disable the function of dynamically creating BFD sessions on the interface.
ospf bfd block
After BFD is enabled on all interfaces in the OSPF process, you can run this command on certain interfaces to reduce monitored links. This improves performance.
Access the interface view.
interface interface-type interface-number
Enable BFD on the OSPF-enabled interface.
ospf bfd enable
(Optional) Configure BFD session parameters.
ospf bfd { detect-multiplier multiplier-value | min-rx-interval receive-interval | min-tx-interval transmit-interval } *
Because the priority of BFD on the interface is higher than that of BFD in the OSPF process, the parameters of the BFD session on the interface enjoy higher priorities than those of the BFD session in the OSPF process.