The bfd all-interfaces incr-cost command enables an OSPFv3 process to adjust the cost based on BFD.
The undo bfd all-interfaces incr-cost command disables an OSPFv3 process from adjusting the cost based on BFD.
The bfd all-interfaces enable command enables BFD for OSPFv3.
The undo bfd all-interfaces enable command disables BFD for OSPFv3.
By default, an OSPFv3 process does not adjust the cost based on BFD.
By default, BFD is not enabled for OSPFv3.
Usage Scenario
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 OSPFv3 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 OSPFv3 process has been created and started using the ospfv3 command.
BFD has been enabled in the OSPFv3 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.
After BFD is enabled, OSPFv3 establishes BFD sessions only with the neighbors in the Full state. The preference of BFD configured on an interface is higher than that configured in the process. The bfd all-interfaces (OSPFv3) command and the ospfv3 bfd block command are mutually exclusive.