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 😉

12
Leave a Reply

avatar
12 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
9 Comment authors
deanZahraEricMr. Shiney Recent comment authors
  Subscribe  
Notify of
Tom
Guest
Tom

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’

artist
Guest
artist

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.

coCoKNIght
Guest

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

Deadpan110
Guest

@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… Read more »

dirn
Guest

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

Mr. Shiney
Guest

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

Mr. Shiney
Guest

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

Eric
Guest
Eric

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.

trackback

[…] […]

Zahra
Guest
Zahra

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?

dean
Guest
dean

thanks

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