2
I recently setup a linux box running Ubuntu 8.04 (to match another server with 8.04). I need to insure that this box has a static IP address and I changed /etc/network/interfaces to set up the static IP address and when I run sudo /etc/init.d/networking restart it works fine for a while, but always reverts back to 10.0.1.24 after being idle for a while.
I also tried stopping/removing the dhcp client, but that didn't help.
sudo /etc/init.d/dhcp stop
sudo apt-get remove dhcp3-client
Here is my /etc/init.d/networking:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.1.4
netmask 255.255.255.0
broadcast 10.0.1.255
gateway 10.0.1.1
Any thoughts?
1That only determines host name resolution, not what IP address he gets. – Peter Eisentraut – 2010-01-22T06:53:30.900