
Spanning-Tree Commands
78-20269-01 Command Line Interface Reference Guide
379
29
Example
The following example configures the port priority of port gi1 to 144.
Console(config)#
interface
gi1
Console(config-if)#
spanning-tree mst
1
port-priority
144
29.20 spanning-tree mst cost
Use the spanning-tree mst cost Interface Configuration (Ethernet, Port-channel)
mode command to configure the path cost for multiple spanning-tree (MST)
calculations. If a loop occurs, the spanning tree considers path cost when
selecting an interface to put in the forwarding state. Use the no form of this
command to restore the default configuration.
Syntax
spanning-tree mst
instance-id
cost
cost
no spanning-tree mst
instance-id
cost
Parameters
•
instance-id—Specifies the spanning-tree instance ID. (Range: 1–15)
•
cost—Specifies the port path cost. (Range: 1–200000000)
Default Configuration
Default path cost is determined by the port speed and path cost method (long or
short) as shown below:
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Interface
Long
Short
Port-channel
20,000
4
Gigabit Ethernet (1000 Mbps)
20,000
4
Fast Ethernet (100 Mbps)
200,000
19
Ethernet (10 Mbps)
2,000,000
100