Ubuntu 8.10 Intrepid – Fix Static IP & Network Manager Problem

Hey all,

today i have installed the new release of Ubuntu, 8.10 Intrepid

but i had a problem setting my IP to a static one, when i do this through the network manager, and when i edited the network files manually nothing worked, so here is the steps i followed to solve the problem :

first i removed the network manager

sudo update-rc.d -f NetworkManager remove

then i added my network configuration by editing the file /etc/network/interfaces

sudo gedit /etc/network/interfaces

so it looks like

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.xxx

then i edited the file /etc/resolv.conf to add my DNS

sudo nano -w /etc/resolv.conf

to look like

# Generated by NetworkManager
nameserver 192.168.1.xxx

then i restart the networking by :

sudo /etc/init.d/networking restart

if u still have problems, i suggest you restart the machine and check, the above steps is how i got my network up .

enjoy the new Ubuntu ;)

  • Share/Bookmark

Related posts:

  1. Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 “Karmic Koala”

Tags: , , , , , , ,

12 comments

  1. My Ubuntu 8.10 installaion is still experimental – so
    I was not willing to remove NetworkManager.
    Upon every restart of a system the file /etc/resolv.conf
    looses its ‘nameserver’ entries. I have found a simple
    trick to prevent this:
    sudo chmod 0444 /etc/resolv.conf
    (remove write access to the file)

    Tom

    P.S. Pls correct a typo: ‘Intrepid Ibex’ not ‘Interpid’

  2. To set static IP:

    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.

    then reboot.

  3. Thanks Tom, I think your chmod tip made it work for me in the end.
    The method where you configure the networkmanager didn’t work for me at all.
    And the method described above at the beginning either.
    Here’s what worked for me:
    1. edit /etc/network/interfaces (see post above)
    2. edit /etc/resolv.conf (see post above)
    3. sudo chmod 444 /etc/resolv.conf (see Toms comment above)
    4. remove NetworkManager (see post above)
    5. sudo /etc/init.d/networking restart (I’m not sure this is required)
    6. reboot

  4. @Tom, yes I agree, there *should* be no reason to remove Network Manager and I have followed the above instructions to remove Network Manager only from rc.d and then did the chmod change to the resolve.conf and all works now (no deletion of nameserver entries).

    @all, Im not entirely sure what Ubuntu are playing at with Intrepid, but I feel that it is no good… lots of silly mistakes with quite a lot of things that *Should Just Work!*.

    Why they like to think a network should be started when you log in is beyond me… I use Ubuntu on our main computer for HDTV output with 5.1 sound along with mythTV… all very well and good… but they seem to be trying to separate the words ‘server’ and ‘desktop’!

    On the same machine, we need a static IP to run dhcp3-server so that our ‘Linux Terminal Clients (LTSP)’ boot in other rooms of our house… so infact our main PC is a Desktop and a server… where are they going with this? ….’apt-get install BSOD’ next?

    Anyways… rant and vent over… and for anyone still reading… follow the instructions above and add:
    chmod 444 /etc/resolv.conf

    This will still keep Network Manager on your system just in case they fix it… (if they don’t… then repeat the process after an update)

  5. There’s also another workaround. Instead of chmod 444 /etc/resolv.conf, unchecked the network manager in Sessions.

  6. I finally got around to upgrading from hardy to intrepid last night. And of course my network died as a result. Thanks for posting the fix, I’ll give it a try tonight.

    http://froppy.com/blog

  7. Tom, THANK YOU. I followed your instructions and got my network working again. You rule.

  8. I have been trying to set up static IPs in Ubuntu 8.10 64bit and Fedora -10 64Bit and I can get the IPs to remain for some time, but Ubuntu loses the netmask, and the DNS, as with Fedora-10. Then as unable to get to the Internet, can’t replace NM with anything else. So removed NM, didn’t work, reinstall no better. Can ping everything on network. But no internet. Very frustrating. I found earlier version a lot easier. I have edited the appropriate conf files to no avail.

  9. My machine has two NICs and the first NIC sets up to use dhcp I’d like to set up the second one to use static IP. Static IP will be used for set up a test LAN with 3 machine and I don’t like to use any DNS-server for this LAN. Can any one help me?

  10. thanks

    needed this urgently to get synergy+ working between 2 machines with only 1 keyboard & mouse. saved me loads of time ;-)

Leave a comment