1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Spanning Tree Protocol woes

Discussion in 'Tomato Firmware' started by Kiwi8, Jun 4, 2008.

  1. Kiwi8

    Kiwi8 LI Guru Member

    This is regarding my problem when using Spanning Tree Protocol.

    I found out that we can use the following command to manually select the root bridge:
    brctl setbridgeprio br0 <prio>

    where the lower <prio> is, the higher the priority.

    But I have a problem. When I put in this command in the Init Script, it does not seem to affect the value of the prio after the router boots up. So I suspect that the Init Script was executed before the default bridge priority was set.

    Is there a way for me to run it once after the default bridge priorty is set after bootup?
  2. Kiwi8

    Kiwi8 LI Guru Member

    Let me answer my own question, silly me. :redface:

    I have found that setting a sleep timer will help.

    Hence the sequence of commands that I keyed into the Init Script is:
    sleep 3
    brctl setbridgeprio br0 <prio>

    One thing to note is that sleep 2 or less will not work as the delay is too short.

Share This Page