11-18
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 11 Configuring STP
Configur ing Spanning-Tree F eatures

Configuring the Switch Priority of a VLAN

You can configure the switch priority and make it more likely that the switch will be chosen as the root
switch.
Note Exercise care when using this command. For most situations, we recommend that you use the
spanning-tree vlan vlan-i d ro o t pr i ma r y and th e spanning-tree vlan vlan-id root secondary glo bal
configurati on comm a nds to m odif y th e sw itch prio ri ty.
Beginning in privileged EXEC mode, follow these steps to configure the switch priority of a VLAN:
To return the switch to its default setting, use the no spanning-tree vlan vlan-id priority globa l
configurati on comm a nd.
Command Purpose
Step 1 configure terminal Enter glob al con figuration mo de.
Step 2 spanning-tree vlan vlan -id priority priority Configure the switch priority of a VLAN.
For vlan-id, the range is 1 to 4094 when the EI is installed
and 1 to 1005 when the SI is installed. Do not enter
leading zeros.
For priority, the range is 0 to 61440 in increments of
4096; t he d efa ult i s 3 276 8. The l ower the num be r, t he
more likely the switch will be chosen as the root switch.
Valid p riorit y values a re 4 096 , 8192, 122 88, 1 6384,
20480, 24 576 , 286 72, 32 768 , 368 64, 4 0960 , 45056,
49152, 53 248 , 573 44, a nd 61 440. A ll ot her values ar e
rejected.
Step 3 end Return to privileged EXEC mode.
Step 4 show spanning-tree vlan vlan-id Ve rify y our ent rie s.
Step 5 copy running-config startup-config (Optiona l) Save your entries in the co nfigurati on file.