Comment 37 for bug 279262

Revision history for this message
Shirish Agarwal (shirishag75) wrote : Re: network-manager After reboot network is totally broken

Hi all,
Apologies for this one is going to be a long one.

 I have a single ADSL router/modem and the basic way it works/worked is that the router is the one which does all the authentication, I just need to connect the power cable and I had connectivity.

With the recent updates firefox and pidgin worked intermittently.
If I opened up firefox I used to get that firefox is off-line. If I used pidgin, I used to either get IRC or Gmail/XMPP authentication but not both together.

What I had to do is click Work off-line in firefox and then refresh all the pages. For pidgin unfortunately, there was no workaround.

A temporary workaround that I found out was that if I did

sudo /etc/init.d/NetworkManager stop

and then both firefox and Pidgin used to work for me.

This is my /etc/network/interfaces file

auto lo
iface lo inet loopback

auto eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

This is my /etc/Network-Manager/nm-system-settings.conf
[main]
plugins = ifupdown, keyfile

[ifupdown]
managed = false

Then I found this thread and some people had commented that changing managed from false to true would make things easy or perhaps that was my understanding.

The moment I did managed = true my network borked, I wasn't able to do anything.

I tried everything

sudo /etc/init.d/networking restart
sudo /etc/init.d/NetworkManager restart

but to no avail.

as somebody confirmed /etc/resolv.conf is now empty.

This is way dirty, I'm sure somebody would say these lines are not necessary but somehow I have now got net connectivity using dhcp

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0 inet static

#iface eth0 inet static
#address 192.168.1.2
#netmask 255.255.255.0
#gateway 192.168.1.1
iface eth0 inet dhcp

Now I have few questions

a. Is there anyway I can get back to having a static interface without using dhcp or no?

b. Could there be something salvaged from /etc/resolv.conf or that is gone forever? (Perhaps there was nothing there, dunno)

Looking forward for answers on the same.

Btw new versions of network-manager and ifupdown have hit it seems around 6 hours ago.

Network Manager 0.7~~svn20081008t224042-0ubuntu2