Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any way to stop NetworkManager applet and switch to manual configuration of /etc/network/interfaces?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

If you manually configure an interface in /etc/network/interfaces, NetworkManager will not manage it. For example, add the following to interfaces file:

iface eth0 inet dhcp

Then restart NM service (sudo service network-manager restart), now NM appplet will say that device is not managed.

share|improve this answer
    
But NetworkManager will feel perfectly free to rewrite the interfaces file, throwing away all your additions, so be sure and have a backup handy. –  ubfan1 Mar 12 '13 at 4:00
    
@ubfan1 Not, really. NetworkManager doesn't write config to the interfaces file. I added iface eth0 inet dhcp to my interfaces and after sudo service network-manager restart NM says the wired network interface is unmanaged and I'm not allowed to interact with it via NM. –  Eric Carvalho Mar 12 '13 at 13:45
3  
On 13.10 I get service network-manager restart stop: Unbekannter Auftrag: network-manager –  rubo77 Feb 26 at 0:28
sudo /etc/init.d/network-manager stop

This is the command to stop network-manager applet in both Gnome3 and Unity. hope that helps

share|improve this answer
    
what happens after a reboot –  David Mar 12 '13 at 2:45
    
Upon reboot, NM will start again. If you really want it to go away forever, remove it and reboot. –  chili555 Mar 12 '13 at 14:02
    
This is not working anymore on 13.10 –  rubo77 Feb 26 at 0:29

to stop network manager

sudo /etc/init.d/network-manager stop

To stop it from managing eth0 on next reboot, edit /etc/network/interfaces like so, changing the addresses to suit your needs

auto eth0
iface eth0 inet static
    address 10.0.1.69
    netmask 255.255.255.0
    gateway 10.0.1.1
    dns-search example.com
    dns-nameservers 10.0.1.8 10.0.1.9
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.