Interface cost: is configured for a specified interface.
Global cost: is configured for all interfaces.
Automatically calculated cost: is automatically calculated based on the interface bandwidth.
If no cost is configured for an IS-IS interface, the IS-IS interface uses the default cost 10 and cost style narrow.
The cost range of an interface and a route received by the interface vary with the cost type.
If the cost style is narrow, the cost of an interface ranges from 1 to 63. The maximum cost of a route received by the interface is 1023.
If the cost style is narrow-compatible or compatible, the cost of an interface ranges from 1 to 63. The cost of a received route is related to relax-spf-limit.
If the cost style is wide-compatible or wide, the cost of the interface ranges from 1 to 16777215. When the cost is 16777215, the neighbor TLV generated on the link cannot be used for route calculation but for the transmission of TE information. The maximum cost of a received route is 0xFFFFFFFF.
Perform any of the following operations to configure the cost of an IS-IS interface.
Configure the cost of a specified IS-IS interface.Configure the global IS-IS cost.
Enable IS-IS to automatically calculate the interface cost.
The bandwidth reference value set using the bandwidth-reference command takes effect only when the cost style is wide or wide-compatible. In this case, the interface cost is calculated using the following formula:
Cost of each interface = (Bandwidth-reference/Interface bandwidth) × 10
If the cost-style is narrow, narrow-compatible, or compatible, the cost of each interface is calculated based on costs listed in Table 1.
Cost |
Bandwidth Range |
---|---|
60 |
Interface bandwidth ≤ 10 Mbit/s |
50 |
10 Mbit/s < Interface bandwidth ≤ 100 Mbit/s |
40 |
100 Mbit/s < Interface bandwidth ≤ 155 Mbit/s |
30 |
155 Mbit/s < Interface bandwidth ≤ 622 Mbit/s |
20 |
622 Mbit/s < Interface bandwidth ≤ 2.5 Gbit/s |
10 |
2.5 Gbit/s < Interface bandwidth |