3.21.6 spanning-tree priority
The spanning-tree priority global configuration command configures the spanning-tree priority. The priority value is used
to determine which bridge is elected as the root bridge. To reset the default spanning-tree priority use the no form of this
command.
Syntax
spanning-tree priority priority
no spanning-tree priority
§
priority — Priority of the bridge. (Range: 0 - 61440 in steps of 4096)
Default Configuration
The default bridge priority for IEEE STP is 32768.
Command Modes
Global Configuration mode
User Guidelines
The lower the priority, the more likely the bridge is to be the Root Bridge.
Example
The following example configures spanning-tree priority to 12288.
Console(config)# spanning-tree priority 12288
3.21.7 spanning-tree disable
The spanning-tree disable interface configuration command disables spanning-tree on a specific port. To enable
spanning-tree on a port use, the no form of this command.
Syntax
spanning-tree disable
no spanning-tree disable
Default Configuration
By default, all ports are enabled for spanning-tree.
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 g5.
Console (config)# interface ethernet g5
Console (config-if)# spanning-tree disable
3.21.8 spanning-tree cost
The spanning-tree cost interface configuration command configures the spanning-tree path cost for a port. To reset the
default port path cost, use the no form of this command.
Syntax
spanning-tree cost cost
no spanning-tree cost
§
cost — The port path cost (Range: 1 - 200,000,000 )
Default Configuration
The default costs are as follows:
Port Channel — 20,000
118