[Bridge] jumpstart stp port to forwarding state

richardvoigt at gmail.com richardvoigt at gmail.com
Thu Jul 5 17:02:46 PDT 2007


Sorry if this is a dupe, but the mailing list join email got delayed by 10
or 12 hours and so I think this message wasn't accepted:

----------------

I've googled for this, but since there are so many pages talking about linux
boxes connected to CIsco equipment, I can't find anything relevant.

Does linux bridging support anything like cisco's portfast (port starts in
forwarding state)?  Is there a way (sysfs, ioctl) to at least change a port
to forwarding immediately?  Even bridges with stp disabled take some time
bringing ports up after a topology change.  If the delay can't be
eliminated, can I wait for it somehow in my startup scripts to avoid initial
connection failures?

My preference would be to have something like:

brctl portfast br0 bond0.10 on

or

brctl initialstate br0 bond0.10 forwarding



Also, can stp disable all ports in the same bridge?  I would assume not, a
minimum spanning tree needs at least one port forwarding (could that port
somehow be a different interface on the same box, not a member of the
bridge?).  If at least one port is always forwarding, could the minimum cost
port be set to forwarding by default when the bridge is brought up (ip link
set br0 up) irrespective of any portfast-alike setting?

I'm trying to minimize startup time on a firewall.

Thanks for any information you can provide.

Ben Voigt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux-foundation.org/pipermail/bridge/attachments/2007070=
5/8b449d9b/attachment.htm


More information about the Bridge mailing list