Learn how to configure the port priority for an interface to control which interface spanning tree selects when a loop occurs.
You can configure the port priority for an interface to control which interface spanning tree selects when a loop occurs.
This task allows you to assign higher priority values (lower numerical values) to interfaces you want selected first and lower priority values (higher numerical values) to interfaces you want selected last. If all interfaces have the same priority value, spanning tree places the interface with the lowest interface number into the forwarding state.
Before you begin
Perform these steps to configure port priority for an interface.
Procedure
| 1. | Use the enable command to enter privileged EXEC mode. Example:
Enter your password if prompted. |
|
| 2. | Use the configure terminal command to enter global configuration mode. Example:
|
|
| 3. | Use the interface interface-id command to specify an interface to configure and enter interface configuration mode. Example:
Valid interfaces include physical ports and port-channel logical interfaces such as port-channel followed by the port channel number. |
|
| 4. | Use the spanning-tree port-priority priority command to configure the port priority for an interface. Example:
For |
|
| 5. | Use the spanning-tree vlan vlan-id port-priority priority command to configure the port priority for a VLAN. Example:
For For |
|
| 6. | Use the end command to return to privileged EXEC mode. Example:
|