Users Guide

Layer 2 Switching Commands 809
console(config)#spanning-tree bpdu-protection
spanning-tree cost
Use the spanning-tree cost command in Interface Configuration mode to
configure the externally advertised spanning-tree path cost for a port. To
return to the default port path cost, use the no form of this command.
The path cost is used in the selection of an interface for the forwarding or
blocking states. Use the no form of the command to automatically select the
path cost based upon the speed of the interface.
Syntax
spanning-tree [vlan vlan-list] cost cost
no spanning-tree cost
cost — The port path cost.
Default Configuration
The default cost value (0) causes the switch to select the path cost based on
the link speed.
40G Port path cost — 1400
10G Port path cost — 2000
1000 Mbps (giga) — 20,000
100 Mbps — 200,000
10 Mbps — 2,000,000
Port Channel—200,000,000 divided by the sum of the unidirectional link
speed (in Mbps) of each active member multiplied by 10 per section 13.6.1
of IEEE
802.1
s.
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet,
fortygigabitethernet) mode