Disabling NetworkManager in Ubuntu

I’ve seen a few instructions in various places to edit NetworkManager.conf in order to disable the NetworkManager service, but this doesn’t completely do the job.

Saying “no” to NetworkManager.

Making the following change to /etc/NetworkManager/NetworkManager.conf will prevent NetworkManager from managing your network interfaces:

managed=true # <-- change 'true' to 'false'

However, this change does not stop NetworkManager from running, nor from making other changes on your system, including managing your DNS entries and overwriting any changes you make there.

In order to completely disable NetworkManager, you’ll need to comment out or remove the following lines from /etc/init/network-manager.conf (after making a backup copy of the script, of course!):

start on (local-filesystems
         and started dbus)

Removing or commenting-out these lines will keep NetworkManager from starting up on system boot.  You can stop NetworkManager from running immediately in the short term with:

sudo initctl stop network-manager

After disabling NetworkManager, ensure that the basic Networking daemon is running (initctl status networking), and that you have `auto` and and `iface` definitions in your /etc/network/interfaces file for your network interface (in this example, the interface is `eth0` with a static IP address):

auto eth0
iface eth0 inet static
    address {your static IP address}
    netmask # change as needed for your network
    gateway {IP address of gateway or router}
    dns-nameservers {IP address(es) of local or remote DNS server(s), if necessary}
    broadcast {broadcast IP address, if necessary}



7 thoughts on “Disabling NetworkManager in Ubuntu

  1. We are a group of volunteers and opening a new scheme in our community.
    Your web site provided us with valuable information to work on.

    You’ve done an impressive job and our entire community will be thankful to you.

  2. Hey I know this is off topic but I was wondering if you knew of any
    widgets I could add to my blog that automatically tweet my newest twitter
    updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  3. I’m not sure what has spurred the sudden onslaught of spam comments to this year-old post, as well as several others on this site, nor whether they should have me feeling flattered or annoyed. But it’s been interesting to get comments from such prestigious individuals as “pay as you go car insurance for convicted drivers” and “setup vpn”.

    • I reckon you should just delete them: all they are is link spam used to try to game search engines, and if you leave them there they’ll just add more since they found another sucker.

      BTW thanks for posting the info, “notworkmanager” is one of the more insidious bits of broken technlogy making a mess of “linux”.

      • Yes, they’re certainly link spam, and I delete them immediately. But I have to check my email for them, and then log in here to delete them. Frankly, I’m amazed that the spam recognition algorithms employed by WordPress/Askimet haven’t yet trained on and been able to pick up these comments: I’d assume the ones I’ve reported alone would be a significant enough sample to help detect them.

        Regarding “Not”workManager: you’re welcome!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s