I installed Ubuntu 15.04 mini in a Virtualbox VM with the network bridged. The install automatically enables DHCP which works fine. In order to statically assign an IP address, I edited /etc/network/interfaces to look like the following:
auto eth0
iface eth0 inet static
address 10.168.1.218
gateway 10.168.1.1
netmask 255.255.254.0
dns-nameservers 10.168.1.210
If the networking service is restarted, the static address works fine. On reboot, eth0 is up and an ifconfig shows the correct IP, but I can’t ping other devices, i.e. the gateway, and other devices can’t ping this machine. A simple ifdown/ifup cycle will kick it back in gear as will the networking service restart, but I’m hoping to find a way to make the static ip assignment work upon reboot. I’ve looked at the syslog and didn’t see anything unusual regarding eth0.