The ospf bfd enable command enables BFD on an OSPF interface.
The undo ospf bfd enable command disables BFD from an interface.
The ospf bfd incr-cost command enables an OSPF interface to adjust the cost based on BFD.
The undo ospf bfd incr-cost command disables an OSPF interface from adjusting the cost based on BFD.
The ospf bfd incr-cost block command blocks an OSPF interface from adjusting the cost based on BFD.
The undo ospf bfd incr-cost block command unblocks an OSPF interface from adjusting the cost based on BFD.
By default, BFD is not enabled in the OSPF interface view.
By default, an OSPF interface does not adjust the cost based on BFD.
By default, an OSPF interface is not blocked from adjusting the cost based on BFD.
100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
Either a link fault or topology change on a network will cause routes to be re-calculated within an area. As such, speeding up the convergence of a routing protocol is critical to improving the network performance.
As link faults are inevitable, rapidly detecting these faults and notifying routing protocols is an effective way to quickly mitigate them. This includes associating BFD with a routing protocol to speed up convergence of the routing protocol once a link fault occurs. On a network where BFD detects a link fault, even if the fault is rectified quickly, the involved interface is disconnected due to the fact that the associated BFD session is down. As a result, the link is unstable and traffic is lost. To prevent this issue and ensure high network reliability, run the ospf bfd incr-cost command on an OSPF interface to configure the interface to adjust its cost based on the status of an associated BFD session. If the interface detects a BFD session down event, the interface automatically increases its cost. If an increment value has been specified using cost-value in the command, the interface cost is raised by the specified value. If the max-reachable parameter has been specified in the command, the interface cost is changed to the maximum cost value. In this manner, the problem link associated with the BFD session is not preferentially selected, and traffic is transmitted through other links. When the interface detects that the BFD session goes up, the interface automatically restores its cost to the original value.Prerequisites
Before running the ospf bfd enable command, you need to enable BFD globally.
Before running the ospf bfd incr-cost and ospf bfd incr-cost block commands, you need to run the ospf bfd enable command to enable BFD on the interface.Configuration Impact
If global BFD is not enabled, you can enable BFD on an interface, but BFD sessions cannot be set up in this case. Similarly, if only parameters of a BFD session are set but the ospf bfd enable command is not used, the BFD session cannot be set up.
BFD configured on an interface takes precedence over BFD configured for a process. If BFD is enabled on an interface, the BFD parameters on the interface are used to establish BFD sessions.Precautions