The bfd all-interfaces enable command enables BFD in an OSPF process.
The undo bfd all-interfaces enable command disables BFD in an OSPF process.
The bfd all-interfaces incr-cost command enables an OSPF process to adjust the cost based on BFD.
The undo bfd all-interfaces incr-cost command disables an OSPF process from adjusting the cost based on BFD.
By default, BFD is disabled.
By default, an OSPF process does not adjust the cost based on BFD.
Usage Scenario
BFD can fast detect a fault on a network, minimizing the impact of the fault on services.
You can enable BFD either on an interface or in an OSPF process. The configurations of BFD on an interface take precedence over those in an OSPF process. When BFD detects a fault and the system recovers quickly, the interface is disconnected due to BFD Down. As a result, the link is unstable and traffic is lost. To ensure network reliability and solve the preceding problem, you can run the bfd all-interfaces incr-cost command to adjust the link cost. When an OSPF process detects BFD Down, it automatically increases the cost of the interface so that the link is no longer selected and traffic can be transmitted through other links. When BFD Up is detected, the cost of this process is automatically restored to the original cost.Prerequisites
An OSPF process has been created using the ospf command.
BFD has been enabled for the OSPF process using the bfd all-interfaces enable command.Precautions
The interface-specific BFD-associated cost value has a higher priority than the process-specific BFD-associated cost value.
A BFD session can be created only when the bfd all-interfaces enable command is run on both ends to enable global BFD. In addition, BFD sessions can be created only between the two ends that have set up an OSPF neighbor relationship in the Full state. The bfd all-interfaces command run in the OSPF view and the ospf bfd block command are mutually exclusive.