The show spanning-tree interface interface-id privileged EXEC command displays information only for
ports that are in a link-up operative state. Otherwise, you can use the show running-config privileged EXEC
command to confirm the configuration.
Related Topics
Port Priority Versus Path Cost, on page 18
Configuring the Device Priority of a VLAN
You can configure the switch priority and make it more likely that a standalone switch or a switch in the stack
will be chosen as the root switch.
Exercise care when using this command. For most situations, we recommend that you use the spanning-tree
vlan vlan-id root primary and the spanning-tree vlan vlan-id root secondary global configuration
commands to modify the switch priority.
Note
This procedure is optional. Beginning in privileged EXEC mode, follow these steps to configure the switch
priority of a VLAN:
SUMMARY STEPS
1.
configure terminal
2.
spanning-tree vlan vlan-id priority priority
3.
end
DETAILED STEPS
PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Configures the switch priority of a VLAN.
spanning-tree vlan vlan-id priority
priority
Step 2
•
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.
Example:
Switch(config)# spanning-tree vlan
20 priority 8192
•
For priority, the range is 0 to 61440 in increments of 4096; the default
is 32768. The lower the number, the more likely the switch will be
chosen as the root switch.
Catalyst 2960-XR Switch Layer 2 Configuration Guide, Cisco IOS Release 15.0(2)EX1
34 OL-29424-01
Configuring Spanning Tree Protocol
Configuring the Device Priority of a VLAN