PurposeCommand or Action
Enters the global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 2
Configures the switch priority of a VLAN.
spanning-tree vlan vlan-id priority
priority
Step 3
•
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.
Valid priority values are 4096, 8192, 12288, 16384, 20480, 24576,
28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440.
All other values are rejected.
Returns to privileged EXEC mode.end
Example:
Switch(config-if)# end
Step 4
Configuring the Hello Time
The hello time is the time interval between configuration messages generated and sent by the root switch.
This procedure is optional.
SUMMARY STEPS
1.
enable
2.
spanning-tree vlan vlan-id hello-time seconds
3.
end
DETAILED STEPS
PurposeCommand or Action
Enables privileged EXEC mode. Enter your password if prompted.enable
Step 1
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
234
How to Configure Spanning-Tree Features