/etc/network/interfaces doesn't always take affect

Posted by user1221444 on Ask Ubuntu See other posts from Ask Ubuntu or by user1221444
Published on 2013-06-25T21:31:46Z Indexed on 2013/06/25 22:29 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

For some reason my eth0 does not have internet on reboot sometimes. I am using a static ip. I can ping my gateway, but I am unable to ping dns servers, or anything out of my network. It seems that when my internet does work(Usually but just restarting enough times), my /etc/resolv.conf has a nameserver in it. It is empty when I have no internet access. I believe something is overwriting my interfaces settings sometimes on boot. Any help would be appreciated. I am running Ubuntu Server 12.04 64bit

/etc/network/interfaces:

auto lo
iface lo inet loopback


 auto eth0
 iface eth0 inet static
     address 173.213.192.234
     netmask 255.255.255.248
     network 173.213.192.232
     broadcast 173.213.192.239
     gateway 173.213.192.233
     dns-nameservers 8.8.8.8

 auto eth1
 iface eth1 inet static
     address 10.0.0.106
     netmask 255.255.255.0
     gateway 10.0.0.1

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about networking