Ubuntu 8.04 server is not retaining a static IP address

Posted by James Pierce on Super User See other posts from Super User or by James Pierce
Published on 2010-01-22T00:43:39Z Indexed on 2010/03/19 20:42 UTC
Read the original article Hit count: 1020

Filed under:
|
|
|

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? Thanks.

© Super User or respective owner

Related posts about ubuntu-8.04-lts

Related posts about ubuntu