2-988
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
spanning-tree cost
spanning-tree cost
To calculate the path cost of STP on an interface, use the spanning-tree cost command. To revert to the
default, use the no form of this command.
spanning-tree cost cost
no spanning-tree cost cost
Syntax Description
Defaults The default settings are as follows:
• FastEthernet—19
• GigabitEthernet—1
Command Modes Interface configuration mode
Command History
Usage Guidelines When you configure the cost, the higher values indicate higher costs. The range applies regardless of the
protocol type that is specified. The path cost is calculated, based on the interface bandwidth.
Examples This example shows how to access an interface and set a path cost value of 250 for the spanning-tree
VLAN that is associated with that interface:
Switch(config)# interface fastethernet 2/1
Switch(config-if)# spanning-tree cost 250
Switch(config-if)#
Related Commands
cost Path cost; valid values are from 1 to 200,000,000.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Command Description
spanning-tree portfast default Enables PortFast by default on all access ports.
spanning-tree portfast (interface
configuration mode)
Enables PortFast mode.
spanning-tree port-priority Prioritizes an interface when two bridges compete for
position as the root bridge.
spanning-tree uplinkfast Enables the UplinkFast feature.
spanning-tree vlan Configures STP on a per-VLAN basis.
show spanning-tree Displays spanning-tree information.