trill cost

Use trill cost to set the link cost for a TRILL port.

Use undo trill cost to restore the default.

Syntax

trill cost cost-value

undo trill cost

Default

The link cost for a TRILL port is 2000.

Views

Layer 2 Ethernet interface view

Layer 2 aggregate interface view

Predefined user roles

network-admin

mdc-admin

Parameters

cost-value: Specifies a link cost in the range of 1 to 16777214.

Usage guidelines

The link cost for a TRILL port can be automatically calculated by the system or manually set.

If you manually set the link cost for a TRILL port, make sure its peer TRILL port uses the same link cost.

Configuration in Layer 2 Ethernet interface view takes effect only on 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 to 20000 for TRILL port .

<Sysname> system-view
[Sysname] interface 
[Sysname-] trill cost 20000

Related commands

auto-cost enable