2-423
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco 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
Command History
Usage Guidelines When you configure the cost, higher values indicate higher costs. The range applies regardless of the
protocol type specified. Path cost is calculated, based on interface bandwidth.
Examples This example shows how to access an interface and set a path cost value of 250 for the spanning tree
VLAN associated with that interface:
Switch(config)# interface fastethernet 2/1
Switch(config-if)# spanning-tree cost 250
Switch(config-if)#
Related Commands spanning-tree port-priority
spanning-tree portfast default
spanning-tree portfast (interface configuration mode)
spanning-tree uplinkfast
spanning-tree vlan
show spanning-tree
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.