browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Ubuntu 10.04 LTS: DHCP3-server and bridge running late

Posted by on 9 March 2011

In Ubuntu 10.04 LTS (and also in previous versions as well) the DHCP3-server fails to start when using a bridged config. There are some solutions, but the best one is using the post-up and pre-down directives in the /etc/network/interface file and disabling the daemon from automatically starting in the same runlevel.

# The loopback network interface
auto lo
iface lo inet loopback

auto br0
iface br0 inet static
      address x.x.x.x
      netmask 255.255.255.0
      gateway x.x.x.x
      bridge_ports eth0 eth1 ethN
      bridge_maxwait 0
      post-up /etc/init.d/dhcp3-server start
      pre-down /etc/init.d/dhcp3-server stop

update July 2011: Ah, turns out there’s another card to be played. The bridge_maxwait 0 ensures that the network interface is presented as being instant up and running so other network dependent daemons can attach to it.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>