This is more a topic for exams, like Cisco CCIE, but also it can appear in real-world environments.

Consider the following simple topology:
Simple L2 topology

SW1 is the spanning-tree root bridge for all VLANs. Imagine that you have a request which ask you that when a port becomes active, no matter of VLAN, it should wait 10 seconds until it transition to forwarding state.

You look into configuration mode and spot the “spanning-tree .. forward-time..” command. OK, simple enough, you go there and type:

Task completed. This is what I also thought. Looks pretty straight forward, but it’s a mistake which I learned from and I hope you will read this before doing it.
Lucky for me it was just a test lab not the real CCIE lab, but if I don’t teach this kind of things or spend the entire day fine-tuning STP, I tend to forget.

Back to this example, let’s see on the SW2 what’s happening after I did configure the above command on SW1. By the way, you need to configure this command only on the STP root bridge because the downstream devices will inherit the values.

On the SW2 I shutdown the root interface to force the alternate interface (which is in blocking state) to transition to forward state and check the output of “debug spanning-tree events” :

From :15 seconds when the port entered Listening state until :35 seconds when it went into Forwarding state there are 20 seconds. We were required to have 10 seconds not 20. That’s not good.

Going back and checking the parameters of a STP for a particular VLAN did not give me too much information to clarify the issue:

OK, after reading again carefully the documentation I came to the understanding that value added to this command is applied to each state towards the forwarding state.
The STP Port States are: Blocking, Listening, Learning, Forwarding and Disabled.

When I did shutdown the root port, the alternate port when immediately to Listening state then waited for 10 seconds until it transition to Learning state and again 10 Seconds to achieve Forwarding state.

The correct solution was obvious now to decrease the forward-time to 5 seconds.

Let’s check again:

Now the total time is 10 second.

I hope this will help others to avoid my mistakes.

Cisco STP forward-time command trick
Tagged on:                 

4 thoughts on “Cisco STP forward-time command trick

  • October 15, 2013 at 22:57

    you should study new technologies, not the old ones… how often do you configure stp nowadays?

    • October 16, 2013 at 08:16

      Thank you for your advice, but I tend not to completely agree with you. If you read my blog you’ll see that I deal with old and new technology, basically everything I find interesting.
      Then depending on professional position one can still configure a lot of STP. Last but not least, if you want to go for a certification, you need to know STP, the same you need to know Frame-Relay even if there is very less use of it.

  • October 16, 2013 at 20:18


    Nowadays engineers just use brain dumps and pass all the exams. Life goes to fast to study old and not so useful stuff…

    • October 16, 2013 at 22:04

      Everybody is entitled to act as they want :) I like to know what I’m talking about, not only have the certification papers. I understand your opinion, but I have a different view of what means to be a “network engineer”.

Leave a Reply

%d bloggers like this: