Spanning Tree Protocol Configuration Guide, Cisco Catalyst IE9300 Rugged Series Switches

PDF

Spanning Tree Protocol Configuration Guide, Cisco Catalyst IE9300 Rugged Series Switches

Configure VLAN switch priority

Want to summarize with AI?

Log in

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:

Switch> enable

Enter your password if prompted.

2.

Use the configure terminal command to enter global configuration mode.

Example:

Switch# configure terminal
3.

Use the spanning-tree vlan priority command to configure the switch priority of a VLAN.

Example:

Switch(config)# spanning-tree vlan 20 priority 24576

For vlan-id, you can specify a single VLAN identified by VLAN ID number, a range of VLANs separated by a hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094.

For priority, the range is 0 to 61440 in increments of 4096. The default is 32768. Switches with lower priority numbers are more likely to be chosen as the root switch. Valid priority values include 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440. Other values are rejected.

4.

Use the end command to return to privileged EXEC mode.

Example:

Switch(config)# end