Wednesday, December 3, 2008

Howto Solve Static IP Problem in Ubuntu 8.10

NetworkManager program provided in Ubuntu 8.10 is mainly aiming to provide a simplified Internet connection. NetworkManager is best for home users and simple internet users. If you want to use a fixed IP address it makes problem, the static IP setting will be work only upto the next restart. After reboot you can't see the Fixed IP. It will reset to DHCP.

Solution for this problem

Uninstall NetworkManager is the only solution
sudo apt-get remove network-manager network-manager-gnome

After that configure manualy the interfaces

Modify the following file: /etc/networks/interfaces.
gksudo gedit /etc/network/interfaces

You can see the following in this file
auto lo
iface lo inet loopback

keep it as such

add the following

auto eth0
iface eth0 inet static

if you have morethan one network card and
you want to set a DHCP in eth1 use the following

auto eth1
iface eth1 inet dhcp

Now Restart the network

sudo /etc/init.d/networking restart


Anonymous said...

You can use WICD instead of Network Manager. That way you get to have a nice GUI for all your network settings.

Anonymous said...

This tutorial isn't complete, it will do what the above poster said. Go here for a better tutorial:

Anonymous said...

Solved: You don't have to uninstall Network Manager.
To keep your static ip settings
1. Right Click on Network Manager icon
2. Select Edit Connection
3. Click on the Add button
(This will add a new connection setting)

4. Type in your MAC Address xx:xx:xx:xx:xx:xx
(e.g. 00:1a:4d:5b:68:8d)

This can be found typing the ifconfig command in the Terminal.
Look for your HWaddr(MAC address). (e.g. Mine was eth0 Link encap: Ethernet HWaddr xx:xx:xx:xx:xx:xx)

5. Click on the IPv4 Settings tab and under method select Manual.

6. Click on Add.
The first box (Address) should be selected already.
After that just click on eat of the the fields to type them in.

Netmask is usually
(unless you or your admin has subnetted your address(i.e., type in the default NetMask as mentioned)

Gateway is usually your address with the last number being 1.
(i.e. if your ip is
then your gateway will be

Then your DNS Servers.
If you have more than one, you can separate them with commas

7. Click Ok

8. Restart and that's it.
(Cheeer ^^)

Anonymous said...

thanks for the tips.
work like a charm now in my PC