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.
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.
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) * 10. When auto-cost enable compatible command is configured, Interface cost = (Bandwidth-reference/Interface bandwidth). When the cost type is narrow, narrow-compatible, or compatible, the cost of each interface is determined as follows: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] ip topology multicast [*HUAWEI] isis 1 [*HUAWEI-isis-1] cost-style wide [*HUAWEI-isis-1] topology multicast topology-id multicast [*HUAWEI-isis-1-topology-multicast] auto-cost enable