24-Port 10/100Mbps Layer 2 Switch w/ 4 Gigabit Ports and 2 Shared Mini-GBIC Slots
28-4
spanning-tree timers
To set the timer of spanning tree.
spanning-tree {forward-time <seconds(4-30)> | hello-time
<seconds(1-2)> | max-age <seconds(6-40)>}
no spanning-tree { forward-time | hello-time | max-age }
forward-time
seconds(4-30)
The time period that a port changes the STP state from
blocking to forwarding.
Time interval for a root bridge broadcasts the hello packets
to other switches.
The maximum age for STP information learned from the
network on any port before it is discarded
Forward-time - 15 seconds
Hello-time - 2 seconds
Max-age - 20 seconds
Global Configuration Mode
1. The relationship between these timer must follow this formula:
2 x (Forward-time - 1) >= Max-age
Max-Age >= 2 x (Hello-time +1)
2. Using no form to reset the timer to default.
switch(config)# spanning-tree forward-time 10
This command was introduced
To enable the auto-detection of a port.
spanning-tree auto-edge
no spanning-tree auto-edge
Interface Configuration Mode
Using no form to disable the auto-edge function.
switch(config-if)# spanning-tree auto-edge