The ipv6 bfd all-interfaces incr-cost command configures each interface in an IPv6 IS-IS process to adjust its cost based on the status of an associated BFD session.
The undo ipv6 bfd all-interfaces incr-cost command restores the default configuration.
By default, no interface in an IPv6 IS-IS process adjusts its cost based on the status of an associated BFD session.
Parameter | Description | Value |
---|---|---|
cost-value |
Specifies a cost increment value for all interfaces in the IS-IS process. |
The value is an integer ranging from 1 to 16777213. |
max-reachable |
Changes the cost of each interface in the IS-IS process to the maximum value 16777214. |
- |
ipv6 |
Indicates the IPv6 protocol. |
- |
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 ipv6 bfd all-interfaces incr-cost command in an IPv6 IS-IS process to configure each interface in the process to adjust its cost based on the status of an associated BFD session. If an interface in the IPv6 IS-IS process 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
BFD has been enabled in the IS-IS process using the ipv6 bfd all-interfaces enable command.
Precautions
Regarding the configuration of adjusting the interface cost based on the status of an associated BFD session, the configuration in the interface view takes precedence over that in the IS-IS view.
The link cost of an interface depends on the cost type:<HUAWEI> system-view [~HUAWEI] isis 100 [*HUAWEI-isis-100] ipv6 enable topology ipv6 [*HUAWEI-isis-100] ipv6 bfd all-interfaces incr-cost 5