

See Notes below.Įxample before (look at auto eth0): auto loĮxample after (look at allow-hotplug eth0): auto lo Warning: After this change a permanently connected interface might stay down after boot until systemd receives a real plug event. This way the boot is no more waiting for the interfaces to come up first. In /etc/network/interfaces this changes all interfaces (except lo) from auto to allow-hotplug. The real(!) solution to this problem is following command: sudo sed -i.old-`date +%Y%m%d-%H%M%S` '/^auto lo$/!s/^auto /allow-hotplug /' /etc/network/interfaces I'm sure there are other "problems" in this file that can cause this, so you should inspect the file and make sure there are no typos etc. Earlier version of Ubuntu did not have any issues with this, but Ubuntu 12.04 does not like it.

The 2nd gateway param will cause ubuntu to hang for 60+ secs during boot, you only need to define the gateway for the first eth0 section, you DO need to define the gateway for any additional nic cards, IE eth1, wlan0 etc but NOT for additional IPS assigned to the same nic.

What I mean by this is if your file looks like this: auto eth0 You only need to define the gateway for the primary interface for each card. In my case it was defining the gateway parameter for additional ethernet IPS. You should not have to remove everything as suggested in an earlier post, but rather inspect for common problems. In every situation that I have run into this it is a problem in /etc/network/interfaces
