Pages

Sunday, October 23, 2011

Ubuntu network manager and disappering nm-applet icon

I had this strange issue with my Ubuntu install when the nm-applet icon a.k.a. network icon disappeared from the task bar. After much effort i found out a work around that was to stop network-manager application and then launch nm-applet and then restart the network-manager application.

But the solution to this is a very simple one, and as it turned out was not a bug.
If you are faced with such a situation do make sure to checkout your /etc/network/interfaces file to see that the interface is not listed. If the interface is listed in that file remove it else the network-manager wont take over that interface by default.

sudo service network-manager stop
nm-applet &
sudo service network-manager stop

Sample lines in /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.244.2
netmask 255.255.255.0
gateway 192.168.244.244
 

Comment out the interface you want network manager to take over, in this case eth0
#auto eth0
#iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.244.2
netmask 255.255.255.0
gateway 192.168.244.244
 

Then you may simply restart your pc or you can simply restart the networking using
sudo /etc/init.d/networking restart 

No comments:

Post a Comment