Now we are using various kind of devices for network communication. Wifi adapters, 3G/4G modem adapters. Configuring your Linux box to get connected without NetworkManager become a daunting task. Have you tried using 3G modem on your Linux box? It is almost impossible to set it up without NetworkManager.
Well. We have to run NetworkManager now for those special purposes but we still want to keep some devices not to be managed by it. How??
For RHEL/CentOS, add a parameter in desired network config file.(e.g /etc/sysconfig/network-scripts/ifcfg-eth0) -
NM_CONTROLLED=no
service network restartFor Ubuntu, add a section in network manager config file.(i.e /etc/NetworkManager/NetworkManager.conf)
[keyfile]
unmanaged-devices=mac:<MAC address>, mac:<MAC address>
/etc/init.d/network-manager restartNow NetworkManager won't manage those devices anymore.
Remarks: I experience some bugs from RHEL/Fedora - Even though you add "NM_CONTROLLED=no", NetworkManager is still messing up with interfaces. Put in "service NetworkManager stop" in your troubleshooting checklist. :)
Happy Linuxing!