The ipv6 auto-cost enable command enables the SPF auto calculation of the cost.
The undo ipv6 auto-cost enable command disables the SPF auto calculation of the cost.
By default, SPF auto calculation of the cost is not enabled.
| Parameter | Description | Value |
|---|---|---|
| compatible | Specifies the IS-IS to calculate the cost of an interface based on the bandwidth of the interface automatically in compatible. |
- |
This command is valid only for an IPv6 base topology.
After the function is enabled, for a certain IS-IS interface, if the cost of the interface is not configured in the interface view, and the global cost is not configured in the IS-IS view, the system calculates the cost for the interface automatically.
If the cost-style of IS-IS is wide or wide-compatible, the formula of calculating the cost is Auto-cost = (Bandwidth-reference/Link-Bandwidth value) × 10. The Bandwidth-reference is set by the ipv6 bandwidth-reference command. The Link-Bandwidth is the interface bandwidth.
If the cost-style of the system is narrow, narrow-compatible or compatible, the cost of each interface is determined according to the following table.
Cost |
Range of the interface bandwidth |
|---|---|
60 |
Interface bandwidth ≤ 10Mbit/s |
50 |
10Mbit/s < Interface bandwidth ≤ 100Mbit/s |
40 |
100Mbit/s < Interface bandwidth ≤ 155Mbit/s |
30 |
155Mbit/s < Interface bandwidth ≤ 622Mbit/s |
20 |
622Mbit/s < Interface bandwidth ≤ 2.5Gbit/s |
10 |
2.5Gbit/s < Interface bandwidth |
The priority of the cost value of the global IPv6 configured by the ipv6 circuit-cost command is higher than the auto cost value.
This command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.