Home » Planet Ubuntu, Ubuntu Tutorials

Set up a Static IP address on your Ubuntu 8.10 Desktop

9 December 2008 2,939 views 10 Comments

Have you had trouble setting a static IP address on Ubuntu 8.10? If so this is due to a bug with the Gnome Network Manager. The easiest way to fix this is to uninstall the network manager, and edit your configuration files yourself. To remove the network manager type the following into your terminal:

sudo apt-get remove –purge network-manager


Now you have two files to modify, /etc/network/interfaces and /etc/resolv.conf.

First you need to determine what your netmask and gateway settings should be. Now we will edit /etc/network/interfaces:

sudo nano /etc/network/interfaces

And change your eth0 to reflect:

auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1

You can change your address to something else, just make sure that the address you choose isn’t being used by another machine.

Now edit your /etc/resolv.conf:

sudo nano /etc/resolv.conf

In this file you are going to set your name servers. I recommend using the OpenDNS name servers for faster browsing.

nameserver 208.67.222.222
nameserver 208.67.220.220

Now all you need to do is restart your networking:

sudo /etc/init.d/networking restart

Now you will have a static IP address on your Ubuntu Intrepid Ibex system.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

10 Comments »

  • Pages tagged "static" said:

    […] bookmarks tagged static Set up a Static IP address on your Ubuntu 8.10 Des… saved by 2 others     umbumgo bookmarked on 12/09/08 | […]

  • Daniel said:

    Thanks for this! Just one quick thing: I’m lazy and like to copy-and-paste code blocks so I noticed your code for editing the interfaces file has a spelling error: inferfaces instead of interfaces.

  • cJ (author) said:

    Changed.. Thanks

  • egd said:

    How would you go about this in the case of two nicks, eth0 and eth1, where eth0 needs to be static (internal network) and eth1 dynamic assigned by broadband router?

  • cJ (author) said:

    @egd, I haven’t done this, nor do I have a machine to test it on, however, I would setup eth0 as static just like I have shown and then setup eth1 to be: iface eth1 inet DHCP

  • Jacob said:

    Nice Site and thank you very much for the help! I appreciate all the time you have put toward this article! Jacob

  • Chris said:

    great site mate…i’ve tried a few diff combinations but whenever i restart the network, the system stalls on “reconfiguring network interfaces” i’m stuck

  • Brian Stell said:

    I’m curious about the 252 in the netmask:
    netmask 255.255.252.0

  • Jeroen said:

    I’m trying to get this work, but when I want to change the interfaces file, nano says it can’t save the changes, because /etc/network/interfaces doesn’t exist?
    I am as noob as a quaker on Mardi Grass, so any help would be welcome…

  • ZZ-Bottom said:

    good stuff my friend, very helpful.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.