2-676
Catalyst 2960 Switch Command Reference
OL-8604-03
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
spanning-tree port-priority
Examples This example shows how to increase the likelihood that a port will be put in the forwarding state if a
loop occurs:
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# spanning-tree vlan 20 port-priority 0
This example shows how to set the port-priority value on VLANs 20 to 25:
Switch(config-if)# spanning-tree vlan 20-25 port-priority 0
You can verify your settings by entering the show spanning-tree interface interface-id privileged
EXEC command.
Related Commands Command Description
show spanning-tree interface
interface-id
Displays spanning-tree information for the specified interface.
spanning-tree cost Sets the path cost for spanning-tree calculations.
spanning-tree vlan priority Sets the switch priority for the specified spanning-tree instance.