I've recently created a VM running ubuntu server 12.04. I've configured the networking with a static IP. For some reason the networking says " networking stop/waiting". I then manually input the IP with the netmask as well at the default gateway and then issue a "sudo /etc/init.d/networking restart" and the network comes up and I am able to ping the gateway as well as the outside. Unfortunately this doesn't stay and eventually it disconnects from the network and changes my IP .
my /etc/network/interfaces is configured as follows
#The loopback network interface
auto lo
iface lo inet loopback
I've recently created a VM running ubuntu server 12.04. I've configured the networking with a static IP. For some reason the networking says " networking stop/waiting". I then manually input the IP with the netmask as well at the default gateway and then issue a "sudo /etc/init. d/networking restart" and the network comes up and I am able to ping the gateway as well as the outside. Unfortunately this doesn't stay and eventually it disconnects from the network and changes my IP .
my /etc/network/ interfaces is configured as follows
#The loopback network interface
auto lo
iface lo inet loopback
#the primary network interface
auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x
Is there a reason why the server is changing the network as if its set to dhcp when i set the interface statically?