The cost-offset command configures a link cost offset to be added to the link cost of the member links in a link group when the number of available member links falls below a specified number.
The undo cost-offset command restores the original link cost of the member links in a link group.
By default, IS-IS does not automatically adjust the link cost of the member links in a link group.
Parameter | Description | Value |
---|---|---|
cost |
Specifies the link cost offset to be added to the link cost of the member links in a link group when the number of available member links falls below a specified number. |
The value is an integer ranging from 1 to 16777213. The default value is 1. |
max-reachable |
Indicates that the maximum link cost of reachable routes (16777214) is used as the link cost of member links in a link group when the number of available member links in the link group falls below a specified number. |
- |
maximum |
Indicates that 16777215 is used as the link cost of member links in a link group when the number of available member links in the link group falls below a specified number. After 16777215 is used as the link cost, the routes along the links are used to transmit TE information, not selected for traffic forwarding. |
- |
Usage Scenario
In an IS-IS dual-homing access scenario, when the traffic rate exceeds the bandwidth of a link, additional links are needed to carry the traffic. If one of the links fails and the bandwidth of the other links is not sufficient enough to carry the traffic, traffic will get lost. To prevent this problem, run the link-group command to bundle multiple links into a link group and run the cost-offset command to configure a link cost offset to be added to the link cost of the member links in the link group when the number of available member links falls below a specified number. After the link cost is adjusted, the traffic forwarding path is changed, preventing traffic loss.
Prerequisites
A link group has been created using the link-group command.