Command
Spanning-Tree Port-Priority
Use
Sets the switches preference for the alternate paths to use if a loop is detected.
Syntax
Switch(config)#spanning-tree port-priority <number>
Example
In the below example we will configure SW2 to prefer to use Fa0/24 if a loop is detected in the network.
SW2(config)#do show spanning vlan 10 VLAN0010 Bridge ID Priority 16394 (priority 16384 sys-id-ext 10) Interface Role Sts Cost Prio.Nbr Type |
Next, we configure Fa0/24 for VLAN 10 to have a port-priority of 16.
SW2(config)#int fa0/24 |
Show spanning vlan 10 reflects the change.
SW2(config-if)#do show spanning vlan 10 VLAN0010 Bridge ID Priority 16394 (priority 16384 sys-id-ext 10) Interface Role Sts Cost Prio.Nbr Type |