9

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

3 Answers 3

9

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.

4
  • 1
    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, 2013 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. Mar 12, 2013 at 13:45
  • 4
    On 13.10 I get service network-manager restart stop: Unbekannter Auftrag: network-manager
    – rubo77
    Feb 26, 2014 at 0:28
  • This worked for me. I just commented out the line. Thank you, Eric!
    – BruceW
    Dec 31, 2015 at 7:47
8

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
2
sudo /etc/init.d/network-manager stop

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

4
  • 1
    what happens after a reboot
    – David
    Mar 12, 2013 at 2:45
  • 1
    Upon reboot, NM will start again. If you really want it to go away forever, remove it and reboot.
    – chili555
    Mar 12, 2013 at 14:02
  • This is not working anymore on 13.10
    – rubo77
    Feb 26, 2014 at 0:29
  • 2
    For 13.10+: sudo service network-manager stop
    – Arne
    Apr 7, 2015 at 13:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .