C
HAPTER
32
| Spanning Tree Commands
– 815 –
RELATED COMMANDS
spanning-tree mst cost (813)
spanning-tree
port-priority
This command configures the priority for the specified interface. Use the
no form to restore the default.
SYNTAX
spanning-tree port-priority priority
no spanning-tree port-priority
priority - The priority for a port. (Range: 0-240, in steps of 16)
DEFAULT SETTING
128
COMMAND MODE
Interface Configuration (Ethernet, Port Channel)
COMMAND USAGE
◆ This command defines the priority for the use of a port in the Spanning
Tree Algorithm. If the path cost for all ports on a switch are the same,
the port with the highest priority (that is, lowest value) will be
configured as an active link in the spanning tree.
◆ Where more than one port is assigned the highest priority, the port with
lowest numeric identifier will be enabled.
EXAMPLE
Console(config)#interface ethernet 1/5
Console(config-if)#spanning-tree port-priority 0
RELATED COMMANDS
spanning-tree cost (808)
spanning-tree
root-guard
This command prevents a designated port
19
from taking superior BPDUs
into account and allowing a new STP root port to be elected. Use the no
form to disable this feature.
SYNTAX
[no] spanning-tree root-guard
DEFAULT SETTING
Disabled
19. See Port Role under "Displaying Interface Settings for STA" on page 217.