Disable network manager for a particular interface

Souvik picture Souvik · Mar 16, 2011 · Viewed 26.6k times · Source

I would like to disable network manager service for particular interface(s). "/etc/init.d/NetworkManager stop" is not going to serve my purpose since will stop the service. Please let me know how to achieve this. Please suggest commands/code only - I am not interested in graphical configuration. If there is some rpm/patch available already please refer it to me. Can we configure network manager in such a way so that it will not detect any new network card plugged into the system?

Thanks in advance,

Souvik

Answer

bjesus picture bjesus · Mar 2, 2013

Put this in your NetworkManager.conf (usually at /etc/NetworkManager/):

[main]
plugins=keyfile

[keyfile]
unmanaged-devices=mac:xx:xx:xx:xx:xx:xx

of course, adjust the mac address to the device your want to ignore.