Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I have ethernet and wireless networks configured through a network manager (further NM) but it seems to be a bit buggy (I need a different MAC for ether which is never applied if using NM), so I would like to move all the network configs to interfaces file. I know (or can google for) configuration code, but I'm not sure how NM works and it looks like it overrides interface config. Please advice, how I can handle this issue.

NOTE: I also would like to be able to locate and connect to various wireless networks but not sure how to do it.

share|improve this question
Have you considered using the nmcli command-line tool? – belacqua Feb 9 '11 at 2:29
up vote 5 down vote accepted

Set managed=false in /etc/NetworkManager/NetworkManager.conf to remove network interfaces control to interfaces file.

Command to stop network manager:

/etc/init.d/network-manager stop

For detailed documentation, please refer to:

And for WiFi management please refer to:

share|improve this answer

This will help you bypass network manager's control completely.

sudoedit /etc/network/interfaces or sudo gedit /etc/network/interfaces

Replace gedit with your preferred text editor. Make sure that eth0, or whichever your networking interface is, is not commented out. Remove the # before it. As long as the interface is listed in this file, it won't matter if you've NM installed or not.

share|improve this answer
For a graphical text editor like Gedit, gksu (or gksudo) should be used instead of straight sudo, to avoid breaking things. – Eliah Kagan Apr 2 '13 at 16:08

Your Answer


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.