214 CHAPTER 15: SPANNING-TREE COMMANDS
Syntax
spanning-tree disable
no spanning-tree disable
Default Configuration
Spanning tree is enabled on all ports.
Command Modes
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
There are no user guidelines for this command.
Example
The following example disables spanning-tree on Ethernet port g5.
spanning-tree cost The spanning-tree cost Interface Configuration mode command
configures the spanning tree path cost for a port. To restore the default
configuration, use the no form of this command.
Syntax
spanning-tree cost cost
no spanning-tree cost
Parameters
■
■ cost — Path cost of the port (Range: 1-200,000,000)
Default Configuration
Default path cost is determined by port speed and path cost method
(long or short) as shown below:
Console(config)# interface ethernet g5
Console(config-if)# spanning-tree disable
Interface Long Short
Port-channel 20,000 4