spanning-tree cost
The spanning-tree cost Interface Configuration mode command configures the spanning tree path cost for a
port. To return to the default configuration, use the no form of this command.
Syntax
spanning-tree cost cost
no spanning-tree cost
Parameters
•
cost — Path cost of the port (Range: 1 - 200,000,000)
Default Configuration
Default path cost is determined by port speed and path cost method (long or short) as shown below:
Interface
Port-channel
Gigabit Ethernet (1000 Mbps)
Fast Ethernet (100 Mbps)
Ethernet (10 Mbps)
Command Modes
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
The path cost method is configured using the spanning-tree pathcost method Global Configuration mode com-
mand.
Example
The following example configures the spanning-tree cost on Ethernet port 5 to 35000.
Console(config)# interface ethernet 5
Console(config-if)# spanning-tree cost 35000
Long
Short
20,000
4
20,000
4
200,000
19
2,000,000
100
Page 246
Spanning-Tree Commands