How to Disabled NetworkManager on CentOS7

Follow these steps to disabled networkmanager on centos 7. lets start..

  1. To check which are the interfaces managed by NetworkManager
# nmcli device status
  1. Stop the NetworkManager service:
# systemctl stop NetworkManager
  1. Disable the service permanently:
# systemctl disable NetworkManager
  1. To confirm the NetworkManager service has been disabled
# systemctl list-unit-files | grep NetworkManager
  1. Add the below parameter in /etc/sysconfig/network-scripts/ifcfg-ethX of interfaces
    that are managed by NetworkManager to make it unmanaged.

NM_CONTROLLED=”no”

  1. Set the DNS servers to be used by adding into the file: /etc/resolv.conf :

nameserver [server 1]
nameserver [server 2]

  1. Enable the network service
# systemctl enable network
  1. Restart the network service
# systemctl restart network

Check the Network Status again.

# nmcli device status

Watch the video tutorial for better understanding.

YouTube channel: https://www.youtube.com/@trainbrain007

Scroll to Top