STP Commands
spanning-tree cost (Interface)
spanning-tree cost (Interface)
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
switchxxxxxx(config-if)# spanning-tree bpdu-guard enable
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
cost
spanning-tree 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):
Interface
port channel
Gigabit Ethernet (1000 Mbps)
Fast Ethernet (100 Mbps)
Ethernet (10 Mbps)
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
Long
20,000
20,000
200,000
2,000,000
33
Short
4
4
19
100
427