1179
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
spanning-tree mst cost
spanning-tree mst cost
To set the path-cost parameter for any Multiple Spanning Tree (MST) instance (including the Common and
Internal Spanning Tree [CIST] with instance ID 0), use the
spanning-tree mst cost
command. To return
to the default settings, use the
no
form of this command.
spanning-tree mst
instance-id
cost
{
cost
|
auto
}
no spanning-tree mst
instance-id
cost
Syntax Description
Command Default
Automatically set port cost values:
•
10 Mbps—2,000,000
•
100 Mbps—200,000
•
1-Gigabit Ethernet—20,000
•
10-Gigabit Ethernet—2,000
Command Modes
Interface configuration mode
Command History
Usage Guidelines
The port cost depends on the port speed; the faster interface speeds indicate smaller costs. MST always
uses long path costs.
Higher cost values indicate higher costs. When entering the cost, do not include a comma in the entry;
for example, enter 1000, not 1,000.
The EtherChannel bundle is considered as a single port. The port cost is the aggregation of all the
configured port costs assigned to that channel.
Examples
This example shows how to set the interface path cost:
switch(config-if)#
spanning-tree mst 0 cost 17031970
instance-id
Instance ID number. The range is from 0 to 4094.
cost
Port cost for an instance. The range is from 1 to 200,000,000.
auto
Sets the value of the port cost by the media speed of the interface.
Release
Modification
5.2(1)N1(1)
This command was introduced.