STP Commands
spanning-tree cost (Interface)
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
427
33
switchxxxxxx(config-if)#
spanning-tree bpdu-guard enable
spanning-tree cost (Interface)
To configure the STP path cost for an interface, use the spanning-tree cost
Interface Configuration mode command.
To revert to its default setting, use the no form of this command.
Syntax
spanning-tree cost
cost
no spanning-tree cost
Parameters
•
cost
—The port path cost. (Range: 0 to 200000000, 0 indicates Auto)
Default Configuration
The default path cost is determined by the port speed and the path cost method
(long or short):
Command Mode
Interface Configuration (Ethernet, port channel) mode
Example
The following example configures the STP path cost on fa15 to 35000:
switchxxxxxx(config)#
interface gi15
switchxxxxxx(config-if)#
spanning-tree cost 35000
Interface
Long Short
port channel
20,000
4
Gigabit Ethernet (1000 Mbps)
20,000
4
Fast Ethernet (100 Mbps)
200,000
19
Ethernet (10 Mbps)
2,000,000
100