auto-cost enable
Use auto-cost enable to enable automatic link cost calculation for TRILL ports.
Use undo auto-cost enable to disable automatic link cost calculation for TRILL ports.
Syntax
auto-cost enable
undo auto-cost enable
Default
Automatic link cost calculation is enabled for TRILL ports.
Views
TRILL view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
The link cost of a TRILL port can be automatically calculated by the system or manually configured:
When a link cost is manually configured, the manually configured link cost takes effect whether or not automatic link cost calculation is enabled.
When a link cost is not manually configured and automatic link cost calculation is enabled, the automatically calculated link cost takes effect.
When a link cost is not manually configured and automatic link cost calculation is not enabled, the default link cost of 2000 is used.
The system automatically calculates the link cost of a TRILL port by using the following formula: link cost = 20000000000000/interface baud rate.
Examples
# Disable automatic link cost calculation for TRILL ports.
<Sysname> system-view [Sysname] trill [Sysname-trill] undo auto-cost enable
Related commands
trill cost