auto-cost enable
Use auto-cost enable to enable automatic link cost calculation.
Use undo auto-cost enable to disable automatic link cost calculation.
Syntax
auto-cost enable
undo auto-cost enable
Default
Automatic link cost calculation is disabled.
Views
IS-IS IPv6 unicast address family view
Predefined user roles
network-admin
Usage guidelines
After automatic link cost calculation is enabled, the link cost is automatically calculated based on the bandwidth reference value of an interface. When the cost-style is wide or wide-compatible, the cost value of an interface is calculated by using the following formula: Cost = (Reference bandwidth value / Link bandwidth) × 10. For other cost styles, Table 166 applies.
Table 166: Automatic cost calculation scheme for cost styles other than wide and wide-compatible
Interface bandwidth | Cost |
---|---|
≤10 Mbps | 60 |
≤100 Mbps | 50 |
≤155 Mbps | 40 |
≤622 Mbps | 30 |
≤2500 Mbps | 20 |
>2500 Mbps | 10 |
Examples
# Enable automatic link cost calculation for IS-IS process 1.
<Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] address-family ipv6 [Sysname-isis-1-ipv6] auto-cost enable
Related commands
bandwidth-reference
cost-style
isis ipv6 cost