Learn how to configure the switch priority to influence root switch selection in a stand-alone or stacked environment.
You can configure the switch priority to make it more likely that a standalone switch or a switch in the stack will be chosen as the root switch.
This task enables you to control root switch selection by directly setting the switch priority value for a VLAN. This command manipulates priority values directly rather than using the recommended root primary and root secondary commands, so exercise care when using it.
For most situations, we recommend that you use the spanning-tree vlan vlan-id root primary and spanning-tree vlan vlan-id root secondary global configuration commands to modify the switch priority.
Before you begin
Perform these steps to configure switch priority.
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 spanning-tree vlan priority command to configure the switch priority of a VLAN. Example:
For For |
|
| 4. | Use the end command to return to privileged EXEC mode. Example:
|