Problem with set static ip on ubuntu 8.10

There is a bug with the Gnome Network Manger on Ubuntu 8.10. We have to set the static ip address manually. Once the system is reboot, it will reverting back to DHCP setup.

This problem can be solve by remove the Gnome Network Manager. To remove the Gnome Network Manager, use the following command in the terminal:

sudo update-rc.d NetworkManager remove

After that, reboot your system.

Step 1 – How to set the static ip

We need to manually configure the network interface file when you want your Ubuntu run on static IP environment

Enter the following command into the terminal:

nano /etc/network/interfaces

After that, enter the following information to the network configuration files

auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx(enter gateway ip here)

Please save it before you exit the configuration file.

Step 2 – Manually configure your dns configuration file:

Enter the following command into the terminal:

sudo nano /etc/resolv.conf

Once the DNS configuration open, enter the following information

# Generated by NetworkManager
nameserver xxx.xxx.xxx.xxx(enter your dns server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)

Please save before you exit the configuration file.

Step 3 – Restart the network interfaces

Enter the following command in the terminal:

sudo /etc/init.d/networking restart

After that, your network interface should be able to run on new setting(static ip) even you restart your machine. You can try to check on by using ifconfig command in your terminal.

Just try it 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *