How to Set a Static IP address in Ubuntu 8.10 (Intrepid Ibex)
Posted by admin on December 4th, 2008
Email This Post
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Solution 1
Step 1 – Remove the Gnome Network Manager: You need to complete this step first because if left installed this application will overwrite any changes you make to your configuration when the system is rebooted. This is apparently where the bug is located.
To remove the Gnome Network Manager issue the following command in the terminal:
sudo update-rc.d -f NetworkManager remove
This will disable and remove the Gnome Network Manager application. Now you will have to edit your configuration manually.
Restart your System
Step 2 – Manual configuration of your network interface: In this step you will manually configure your network interface by editing the following two files using your preferred text editor(nano gedit vi). For the purpose of this example I am using the nano editor.
Step 2.1 – Manually configure your network interface file: You can edit the appropriate file by entering the following command into the terminal:
sudo nano /etc/network/interfaces
Once your prefered editor opens the file you want to enter the following information (changing your addresses where necessary):
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)
Be sure to save your changes.
Step 2.2 – Manually configure your dns configuration file: You can edit the appropriate file by entering the following command into the terminal:
sudo nano /etc/resolv.conf
Once your preferred editor opens the file you want to enter the following information (changing your addresses where necessary):
# Generated by NetworkManager
nameserver xxx.xxx.xxx.xxx(enter your dns server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)
Be sure to save your changes.
Step 2.3 – Manually restart your network interface with the new settings: Enter the following command in the terminal:
sudo /etc/init.d/networking restart
This should return a result that looks like the following:
*Reconfiguring network interfaces… [OK]
At this point in your terminal you should be able to run the ifconfig command and the results should reflect your new settings. If the addressing is correct you should have full network access, even after a system restart.
Haven’t tried reinstalling the Network Manger after doing these steps to see if it still works.
Solution 2
Install Wicd if you need both wired and wireless connection
Solution 3
Also, it is said that adding a new config in networkmanager (instead of editing the system default ‘Auto eth0′ stuff) and assign the right MAC address (and the static ip) will fix it, every thing’s fine even after reboot, and you can still use that gnome-networkmanager.
Check this simple guide
Credit Goes here



December 4th, 2008 at 12:59 am
I don’t seem to be able to reproduce the bug here, using wireless & static at the same time.
Which bug is this?
December 4th, 2008 at 5:28 am
dude this is a major bug. I produced this on all the machines Ive deployed…
December 4th, 2008 at 8:24 am
thanks for this. i was just trying ubuntu again and ran into this problem. solution 1 worked for me, after having no luck with solution 3.
December 4th, 2008 at 12:28 pm
@Gare
Here is the bug details https://bugs.edge.launchpad.net/ubuntu/+source/network-manager/+bug/259214
December 4th, 2008 at 2:48 pm
Dude,
In both an upgrade from Hardy and a new installation of Ibex, using both static and dhcp received network addresses, I’ve been unable to reproduce this problem. What am I donig wrong?
I did have this problem in one of the betas that I tested, but since the final version was released, have not encountered this problem, sorry.
December 4th, 2008 at 8:15 pm
It could be internet provider dependent. Well, I can’t think of any other reason. I’ve always had problems with Network Manager and used to remove it completely from my system. Well, actually I always do this right after the installation ’cause I don’t like such apps loading my memory. I prefer the console
December 8th, 2008 at 12:01 am
A much easier approach for those who have routers supporting the approach is to force the router’s DHCP server to assign a pre-specified IP address to the computer’s MAC address. On routers with the DD-WRT firmware, the option appears at the “Services” tab, under “Static Leases”.
December 8th, 2008 at 6:17 pm
To set static IP:
Need not to remove Network-Manager.
First to edit (as root) /etc/NetworkManager/nm-system-settings.conf:
[ifupdown]
managed=true
then edit your /etc/network/interfaces and /etc/resolv.conf for your IP and name server.
Example for set a static IP:
1. edit (as root) /etc/NetworkManager/nm-system-settings.conf:
———————————
[ifupdown]
managed=true
———————————
2. edit (as root) /etc/network/interfaces
———————————
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.18.111 #(your IP instead)
netmask 255.255.255.0
gateway 192.168.18.1 #(your gateway instead)
mtu 1400 #(option)
———————————-
3. edit(as root) /etc/resolv.conf
———————————–
# Generated by NetworkManager
domain login
search login
nameserver 202.96.64.68 202.96.69.38 192.168.18.1 #(the name server your area)
———————————–
Why do so, read /usr/share/doc/network-manager/README.Debian, please.
then reboot.
December 20th, 2008 at 7:46 am
Great workaround for this bug! Just followed this for wireless and now I have a static wireless ip. Thanks!
December 24th, 2008 at 8:13 am
well, I use another solution about static ip problem; just I change from “[ifupdown]managed=false” to “[ifupdown]managed=true” and then I can get a static ip with NetworkManager Applet. After this changing, when u set new ip or setting up ur network configuration with NetworkManager Applet, an authorization screen ll appear and with password u can get static ip.
December 24th, 2008 at 11:07 pm
i just tried solution 1 and it failed. now my wireless internet will not work at all because i can’t figure out how to re-enable network manager. can anyone help?
December 28th, 2008 at 4:55 am
Just like Roger said how to do this under the DD-WRT Firmware with a Linksys Ultra N WRT160N router goto Setup -> Basic Setup -> DHCP Reservation and select which Client you want to setup a staic IP for and save it and your done =P
December 31st, 2008 at 9:08 am
how to add additional ip like in microsoft windows XP??
important
Thx.
December 31st, 2008 at 10:20 am
Try this to aasign additional ip address in ubuntu
January 1st, 2009 at 1:38 am
I too have this bug… but I just set my dd-wrt linksy router to set mac-assinged ips.
January 4th, 2009 at 12:26 pm
Fincan … thanks, works perfectly!
January 4th, 2009 at 4:49 pm
The solution given by the #8 is the best one.
Thank one!
Regards.
January 5th, 2009 at 10:04 pm
Ld Says:
December 24th, 2008 at 11:07 pm
i just tried solution 1 and it failed. now my wireless internet will not work at all because i can’t figure out how to re-enable network manager. can anyone help?
I have the same problem…
Can anybody tell me/us how to get the networkmanager to work again (without an internet connection!)…
January 6th, 2009 at 6:11 am
#10 Fincan - Hit the nail on the head!! Awesome! Perfect!! Thanks!