I have an Ubuntu 10.04 server with static IP address configuration:
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.2.51 network 192.168.2.0 netmask 255.255.255.0 broadcast 192.168.2.255 gateway 192.168.2.1
From time to time (between once a month or once every 3 days depending on load) the server will spontaneously discard this IP address and change to one configured via DHCP.
When this happens I need to SSH into the server (using its
.local hostname) and do
/etc/init.d/networking restart to get it to use the static IP again.
How can this happen, and more importantly, how can I stop it?