Command
Spanning-Tree Vlan Port-Priority
Use
If a loop occurs, spanning tree uses the port priority when selecting an interface to put into the forwarding state. Lower is better
Syntax
Switch(config-if)#spanning-tree vlan <vlan range> port-priority <priority>
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. Lower is better.
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 |