The auto-cost enable command enables IS-IS to automatically calculate the link cost of interfaces according to the interface bandwidth.
The auto-cost enable compatible command enables IS-IS to automatically calculate the link cost of interfaces according to the interface bandwidth in compatible.
The undo auto-cost enable command disables the function.
The ipv6 auto-cost enable command enables IS-IS to automatically calculate the IPv6 link cost of interfaces according to the interface bandwidth.
The ipv6 auto-cost enable compatible command enables IS-IS to automatically calculate the link cost of interfaces according to the interface bandwidth in compatible.
The undo ipv6 auto-cost enable command disables the function.
By default, automatic interface cost calculation is disabled.
Usage Scenario
You can configure a link cost for interfaces or run the auto-cost enable command to enable automatic interface cost calculation.
You can configure an IPv6 link cost for interfaces or run the auto-cost enable command to enable automatic interface cost calculation.Prerequisites
No interface cost has been set in the interface view, and no global cost has been configured in the IS-IS view.
Configuration Impact
After automatic interface cost calculation is enabled, the system automatically calculates the interface cost.
If the cost style of the system is wide or wide-compatible: When auto-cost enable command is configured, Interface cost = (Bandwidth-reference/Interface bandwidth) x 10. When auto-cost enable compatible command is configured, Interface cost = (Bandwidth-reference/Interface bandwidth). If the cost type is narrow, narrow-compatible, or compatible, the cost of each interface is based on:Precautions
The auto-cost enable command cannot change the cost of a loopback interface.
The auto-cost enable command can be run on Eth-Trunk interfaces as well as on physical interfaces. If the command is run on an Eth-Trunk interface, the bandwidth of the Eth-Trunk interface is equal to the total bandwidth of all its member interfaces. If the command is run in the IS-IS view, it takes effect only in the base topology. If the command is run in the IS-IS topology view, it takes effect only in the current topology.<HUAWEI> system-view [~HUAWEI] isis 1 [*HUAWEI-isis-1] auto-cost enable
<HUAWEI> system-view [~HUAWEI] isis 1 [*HUAWEI-isis-1] ipv6 enable [*HUAWEI-isis-1] ipv6 auto-cost enable