PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Specifies an interface to configure, and enters interface configuration
mode. Valid interfaces include physical ports and port-channel logical
interfaces. The port-channel range is 1 to 48.
interface interface-id
Example:
Switch(config)# interface
gigabitethernet1/0/1
Step 3
Configures the cost.
spanning-tree mst instance-id cost cost
Step 4
Example:
Switch(config-if)# spanning-tree mst
0 cost 17031970
If a loop occurs, the MSTP uses the path cost when selecting an interface
to place into the forwarding state. A lower path cost represents
higher-speed transmission.
•
For instance-id, you can specify a single instance, a range of
instances separated by a hyphen, or a series of instances separated
by a comma. The range is 0 to 4094.
•
For cost, the range is 1 to 200000000; the default value is derived
from the media speed of the interface.
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 5
The show spanning-tree mst interface interface-id privileged EXEC command displays information only
for ports that are in a link-up operative state. Otherwise, you can use the show running-config privileged
EXEC command to confirm the configuration.
Related Topics
Configuring Port Priority , on page 266
Specifying the MST Region Configuration and Enabling MSTP , on page 261
Configuring the Switch Priority
Changing the priority of a switch makes it more likely to be chosen as the root switch whether it is a standalone
switch or a switch in the stack.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
269
How to Configure MSTP Features