trill cost
Use trill cost to configure the link cost of a TRILL port.
Use undo trill cost to restore the default.
Syntax
trill cost value
undo trill cost
Defaults
The link cost of a TRILL port is 2000.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-admin
Parameters
value: Specifies the link cost in the range of 1 to 16777214.
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.
Configuration in Layer 2 Ethernet interface view takes effect on only the current port. Configuration in Layer 2 aggregate interface view takes effect on the current interface and its member ports. Configuration on the member port of an aggregate interface takes effect after the member port leaves the aggregation group.
Examples
# Set the link cost of TRILL port Ten-GigabitEthernet 1/0/1 to 20000.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] trill cost 20000
Related commands
auto-cost enable