Configuring PVST+ and RPVST+
Command or Action
Step 2
spanning-tree vlan vlan-id priority
priority
Step 3
end
Step 4
show spanning-tree vlan vlan-id
Step 5
copy running-config
startup-config
To return to the default setting, use the no spanning-tree vlan vlan-id priority global configuration command.
Configuring Spanning-Tree Timers
Table 4: Spanning-Tree.Timers
Variable
Hello timer
Forward-delay timer
Maximum-age timer
Configuring the Hello Time
You can configure the interval between the generation of configuration messages by the root switch by
changing the hello time.
Purpose
Configure the switch priority of a VLAN.
• 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. 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.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Description
Controls how often the switch broadcasts hello messages to other switches.
Controls how long each of the listening and learning states last before the STP
port begins forwarding.
Controls the amount of time the switch stores protocol information received
on an STP port.
LAN Switching Configuration Guide, Cisco IOS XE Everest 16.6.1 (Cisco NCS 4200 Series)
Configuring Spanning-Tree Timers
57