Cisco Catalyst 2960-XR Configuration Manual page 80

Layer 2
Hide thumbs Also See for Catalyst 2960-XR:
Table of Contents

Advertisement

Configuring Path Cost
This procedure is optional.
Beginning in privileged EXEC mode, follow these steps to configure a different path cost for the switch.
Before You Begin
A multiple spanning tree (MST) must be specified and enabled on the switch. For instructions, see Related
Topics.
You must also know the specified MST instance ID and the interface used. This example uses 0 as the instance
ID and GigabitEthernet1/0/1 as the interface because that was the instance ID and interface set up by the
instructions listed under Related Topics.
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. spanning-tree mst instance-id cost cost
4. end
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
Switch# configure terminal
Step 2
interface interface-id
Example:
Switch(config)# interface
gigabitethernet1/0/1
Step 3
spanning-tree mst instance-id cost cost
Example:
Switch(config-if)# spanning-tree mst
0 cost 17031970
Catalyst 2960-XR Switch Layer 2 Configuration Guide, Cisco IOS Release 15.0(2)EX1
66
Purpose
Enters the global configuration mode.
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.
Configures the cost.
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.
Configuring Multiple Spanning-Tree Protocol
OL-29424-01

Advertisement

Table of Contents
loading

Table of Contents