Table 89: Default STA Path Costs
Port Type
Ethernet
Fast Ethernet
Gigabit Ethernet
10G Ethernet
40G Ethernet
1. Undefined in standard, but recommended setting is 250.
2. Code does not support 40G path cost, and therefore defaults to 10M half
duplex cost.
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
path cost is 65,535.
Example
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree cost 50
Console(config-if)#
spanning-tree
This command specifies an interface as an edge port. Use the no form to restore the
edge-port
default.
Syntax
spanning-tree edge-port [auto]
no spanning-tree edge-port
Default Setting
Auto
Short Path Cost
(IEEE 802.1D-1998)
65,535
65,535
10,000
1,000
65535
1
auto - Automatically determines if an interface is an edge port.
– 457 –
Chapter 17
Long Path Cost
(802.1D-2004)
1,000,000
100,000
10,000
1,000
2,000,000
2
(page
448) is set to short, the maximum value for
| Spanning Tree Commands