222 CHAPTER 15: SPANNING-TREE COMMANDS
Default Configuration
The default port priority for IEEE Multiple Spanning Tree Protocol (MSTP)
is 128.
Command Modes
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
There are no user guidelines for this command.
Example
The following example configures the port priority of port g1 to 144.
spanning-tree mst
cost
The spanning-tree mst cost Interface Configuration mode command
configures 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. To restore the default
configuration, use the no form of this command.
Syntax
spanning-tree mst instance-id cost cost
no spanning-tree mst instance-id cost
Parameters
■ instance-ID—ID of the spanning -tree instance (Range: 1-16).
■ cost—The port path cost. (Range: 1-200,000,000)
Default Configuration
Default path cost is determined by port speed and path cost method
(long or short) as shown below:
Console(config)#
interface ethernet
g1
Console(config-if)#
spanning-tree mst
1
port-priority
144
Interface Long Short
Port-channel 20,000 4
Gigabit Ethernet (1000 Mbps) 20,000 4