S
PANNING
T
REE
C
OMMANDS
31-16
Example
This example disables the spanning tree algorithm for port 5.
spanning-tree cost
This command configures the spanning tree path cost for the specified
interface. Use the no form to restore the default auto-configuration mode.
Syntax
spanning-tree cost cost
no spanning-tree cost
cost - The path cost for the port.
(Range: 0 for auto-configuration, 1-65535 for short path
cost method34, 1-200,000,000 for long path cost method)
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree spanning-disabled
Console(config-if)#
Table 31-2 Recommended STA Path Cost Range
Port Type IEEE 802.1D-1998 IEEE 802.1w-2001
Fast Ethernet 10-60 20,000-2,000,000
Gigabit Ethernet 3-10 2,000-200,000
Table 31-3 Recommended STA Path Cost
Port Type Link Type IEEE 802.1D-1998 IEEE 802.1w-2001
Fast
Ethernet
Half Duplex
Full Duplex
Trunk
19
18
15
200,000
100,000
50,000
Gigabit
Ethernet
Full Duplex
Trunk
4
3
10,000
5,000
34. Use the spanning-tree pathcost method command on page31-9 to set the path cost method.