How to disable Network Manager in Ubuntu 12.04 (Precise)
2012-07-06 8 Comments
This brief tutorial shows you how to disable (not remove) Network Manager in Ubuntu 12.04 and use the traditional method to configure your network interfaces. Network Manager comes installed by default in Ubuntu and its job is to help you easily configure your network adapters.
Now, if you know how to configure your interfaces or you are using software that need static configurations (i.e. virtualisation tools like I do), go ahead and disable Network Manager.
If you’re new to Ubuntu, it’s not recommended to disable it!
To get started, open a terminal window (press Ctrl-Alt-T to open a terminal from Unity). When it opens, run the commands below:
sudo nano /etc/NetworkManager/NetworkManager.conf
Now make sure the “managed” line contains:
Press Ctrl-Alt-X, choose yes and press enter to save the new settings
Since Network Manager is not managing your network interfaces anymore, you must manually enter that information. To do that, run the commands below
sudo nano /etc/network/interfaces
and make it look like
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.16 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 220.127.116.11 18.104.22.168 #dns-search somedomain.com
Press-X, choose yes and press enter to save the new settings.
That’s it, restart and enjoy