SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface interface-id
4.
spanning-tree cost cost
5.
spanning-tree vlan vlan-id cost cost
6.
end
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Step 1
Example:
Switch>
enable
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
(
port-channel port-channel-number
).
interface interface-id
Example:
Switch(config)#
interface
gigabitethernet1/0/1
Step 3
Configures the cost for an interface.
spanning-tree cost cost
Step 4
Example:
Switch(config-if)#
spanning-tree
cost 250
If a loop occurs, spanning tree uses the path cost when selecting an interface
to place into the forwarding state. A lower path cost represents higher-speed
transmission.
For
cost
, the range is 1 to 200000000; the default value is derived from the
media speed of the interface.
Configures the cost for a VLAN.
spanning-tree vlan vlan-id cost cost
Step 5
Example:
Switch(config-if)#
spanning-tree
vlan 10,12-15,20 cost 300
If a loop occurs, spanning tree uses the path cost when selecting an interface
to place into the forwarding state. A lower path cost represents higher-speed
transmission.
•
For
vlan-id
, you can specify a single VLAN identified by VLAN ID
number, a range of VLANs separated by a hyphen, or a series of
VLANs separated by a comma. The range is 1 to 4094.
•
For
cost
, the range is 1 to 200000000; the default value is derived
from the media speed of the interface.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
232
How to Configure Spanning-Tree Features
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......