Command Line Interface

4-206

4
bridge decrements the hop count by one before passing on the BPDU. When
the hop count reaches zero, the message is dropped.
Example

spanning-tree spanning-disabled

This command disables the spanning tree algorithm for the specified interface. Use
the no form to reenable the spanning tree algorithm for the specified interface.
Syntax
[no] spanning-tree spanning-disabled
Default Setting
Enabled
Command Mode
Interface Configuration (Ethernet, Port Channel)
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.
Syntax
spanning-tree cost cost
no spanning-tree cost
cost - The path cost for the port. (Range: 1-200,000,000)
(Range: 0 for auto-configuration, 1-65535 for short path cost method24,
1-200,000,000 for long path cost method)
Console(config-mstp)#max-hops 30
Console(config-mstp)#
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree spanning-disabled
Console(config-if)#
24. Use the spanning-tree pathcost method command on page 4-201 to set the path cost method.
Table 4-63 Recommended STA Path Cost Range
Port Type IEEE 802.1D-1998 IEEE 802.1w-2001
Ethernet 50-600 200,000-20,000,000
Fast Ethernet 10-60 20,000-2,000,000
Gigabit Ethernet 3-10 2,000-200,000