Re: Network bridge - faster startup?



On Sun, 11 Sep 2011 19:38:34 +0000 (UTC), Nick Leverton wrote:

In article <zLWdnYn9du2Fm_DTnZ2dnUVZ8hKdnZ2d@xxxxxxxxxxxxxxxx>,
Dean <de@xxxxxxxxxxxx> wrote:

eth0 and eth1 are bridged. I have a 100mb router/switch, so the bridge
gives me a decent performing 1Gb connection between the windows box and the
ubuntu server without having to buy a higher spec switch.

Is there any way to speed up the bridge?

Try addin the followin to the interface definition:

bridge_maxwait 0
bridge_fd 0

The forwardin delay is probably what's makin it take 15 seconds from
learnin to forwardin status. I for.et what maxwait is but I think it's
related to a startup delay.

Thanks. I'm assuming the order of interface options isn't important. I now
have:

auto br0
iface br0 inet static
address 192.168.0.3
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1
bridge_maxwait 0
bridge_fd 0
pre-up ifconfig eth0 down
pre-up ifconfig eth1 down
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up brctl addif br0 eth1
pre-up ifconfig eth0 0.0.0.0
pre-up ifconfig eth1 0.0.0.0
post-down ifconfig eth0 down
post-down ifconfig eth1 down
post-down ifconfig br0 down
post-down brctl delif br0 eth0
post-down brctl delif br0 eth1
post-down brctl delbr br0

But I'm still seing the 15 seconds bewteen entering learning/forwarding
state.

Sorry my key between f and h is broken ...

Care to help with some problems with Gnome applications ;-)


.



Relevant Pages

  • Network bridge - faster startup?
    ... router) and eth1. ... eth0 and eth1 are bridged. ... iface br0 inet static ... pre-up ifconfig eth0 down ...
    (uk.comp.os.linux)
  • ethernet device
    ... I have two ethernet devices eth0 and eth1. ... #brctl setfd br0 0 ... eth1 an IP adress of my private network. ...
    (Fedora)
  • Difficult networking problem
    ... mbit ethernet nics (eth0 and eth1). ... I can ping each interface but only one ... ifconfig eth0 down && ifconfig eth1 up ...
    (comp.os.linux.setup)
  • Re: Help Please: Network Down
    ... firewire card that takes over the network card, ... Something like eth0 or eth1 should show up. ... ifconfig eth1 down and then ...
    (Debian-User)
  • Re: Two NICs
    ... can I find which NIC as been assigned to eth0, and which to eth1? ... that ifconfig returns the MAC address of each eth* device - but the ... problem is that I do not know what MAC address corresponds to what NIC to ...
    (comp.os.linux.hardware)