Chapter 16
Configuring STP
Configuring the Forwarding-Delay Time for a VLAN
Beginning in privileged EXEC mode, follow these steps to configure the forwarding-delay time for a
VLAN. This procedure is optional.
Command
Step 1
configure terminal
Step 2
spanning-tree vlan vlan-id forward-time
seconds
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 forward-time global
configuration command.
Configuring the Maximum-Aging Time for a VLAN
Beginning in privileged EXEC mode, follow these steps to configure the maximum-aging time for a
VLAN. This procedure is optional.
Command
Step 1
configure terminal
Step 2
spanning-tree vlan vlan-id max-age seconds
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 max-age global configuration
command.
OL-26520-01
Purpose
Enter global configuration mode.
Configure the forward time of a VLAN. The forward delay is the
number of seconds an interface waits before changing from its
spanning-tree learning and listening states to the forwarding state.
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 seconds, the range is 4 to 30; the default is 15.
•
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Purpose
Enter global configuration mode.
Configure the maximum-aging time of a VLAN. The
maximum-aging time is the number of seconds a switch waits
without receiving spanning-tree configuration messages before
attempting a reconfiguration.
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 seconds, the range is 6 to 40; the default is 20.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Catalyst 2960 and 2960-S Switches Software Configuration Guide, Release 15.0(1)SE
Configuring Spanning-Tree Features
16-23