Chapter 17
| Spanning Tree Commands
– 457 –
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
â—† This command is used by the Spanning Tree Algorithm to determine the best
path between devices. Therefore, lower values should be assigned to ports
attached to faster media, and higher values assigned to ports with slower
media.
â—† Path cost takes precedence over port priority.
â—† When the path cost method (page 448) is set to short, the maximum value for
path cost is 65,535.
Example
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree cost 50
Console(config-if)#
spanning-tree
edge-port
This command specifies an interface as an edge port. Use the no form to restore the
default.
Syntax
spanning-tree edge-port [auto]
no spanning-tree edge-port
auto - Automatically determines if an interface is an edge port.
Default Setting
Auto
Table 89: Default STA Path Costs
Port Type Short Path Cost
(IEEE 802.1D-1998)
Long Path Cost
(802.1D-2004)
Ethernet 65,535 1,000,000
Fast Ethernet 65,535 100,000
Gigabit Ethernet 10,000 10,000
10G Ethernet 1,000 1,000
40G Ethernet
65535
1
1. Undefined in standard, but recommended setting is 250.
2,000,000
2
2. Code does not support 40G path cost, and therefore defaults to 10M half
duplex cost.