The ospfv3 bfd enable command enables BFD on an OSPFv3 interface.
The undo ospfv3 bfd enable command disables BFD from an interface.
The ospfv3 bfd incr-cost command enables an OSPFv3 interface to adjust the cost based on BFD.
The undo ospfv3 bfd incr-cost command disables an OSPFv3 interface from adjusting the cost based on BFD.
The ospfv3 bfd incr-cost block command blocks an OSPFv3 interface from adjusting the cost based on BFD.
The undo ospfv3 bfd incr-cost block command unblocks an OSPFv3 interface from adjusting the cost based on BFD.
By default, BFD is not enabled on an OSPFv3 interface.
By default, an OSPFv3 interface does not adjust the cost based on BFD.
By default, an OSPFv3 interface is not blocked from adjusting the cost based on BFD.
Parameter | Description | Value |
---|---|---|
instance instance-id |
Indicates the ID of the instance to which the interface belongs. |
The value is an integer ranges from 0 to 255. |
incr-cost cost |
Specifies a cost adjustment value. |
The value is an integer ranging from 1 to 65534. |
max-reachable |
Adjusts the link cost of an OSPFv3 interface to the maximum link cost 65535. |
- |
block |
Disables BFD from an OSPFv3 interface. |
- |
enable |
Enables 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, 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 ospfv3 bfd incr-cost command on an OSPFv3 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
IPv6 and BFD have been enabled on the interface.
Configuration Impact
If global BFD is not enabled, BFD can be enabled on an interface. The BFD session, however, cannot be set up after BFD is enabled on the interface. If the parameters of a BFD session are set but the ospfv3 bfd enable command is not run, the BFD session cannot be set up.
The BFD configuration on an interface takes precedence over that in a process. If BFD is enabled on an interface, a BFD session is established according to the BFD parameters set on the interface.Follow-up Procedure
Run the display ospfv3 bfd session command to view the information about neighbors enabled with BFD.
Precautions
After BFD is enabled, a device sets up BFD sessions with only adjacencies.
The ospfv3 bfd enable command and ospfv3 bfd block command are mutually exclusive in function, and the later configuration overwrites the previous one. After BFD is disabled from an interface using the undo ospfv3 bfd enable command, the parameters for setting up BFD sessions remain on this interface but no longer take effect. The interface-specific BFD-associated cost value has a higher priority than the process-specific BFD-associated cost value. The ospfv3 bfd incr-cost block and ospfv3 bfd incr-cost { cost | max-reachable } commands are mutually exclusive. The latter command overwrites the previously configured command.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ipv6 enable [*HUAWEI-GigabitEthernet0/1/0] ospfv3 1 area 1 [*HUAWEI-GigabitEthernet0/1/0] ospfv3 bfd enable [*HUAWEI-GigabitEthernet0/1/0] ospfv3 bfd incr-cost 5