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 set.
A manually set link cost takes precedence over a calculated link cost.
If no link cost is set and automatic link cost calculation is enabled, the calculated link cost takes effect.
If no link cost is set and automatic link cost calculation is disabled, 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