How to Disable Network Manager on Centos 7

This article describes how to disable the Network Manager service. The Network Manager service automates the network’s settings and disrupts connections to the IP addresses.

It is recommended that you disable the Network Manager service and enable the network.service service before you install any web or another role and services.

To disable the Network Manager service following steps below:

1.Type following cmd to Disable Network Manager:

systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
 
2. Change directory to the /etc/sysconfig/network-scripts
 
cd /etc/sysconfig/network-scripts/
 
3. Open the ifcfg-ens2 (or another file) file with text editor, for example vi text editor:
 
vi  ifcfg-ens2
 
and add the next values:
 
NM_CONTROLLED=no
ONBOOT=yes
 
4. Restart the network
 
systemctl enablenetwork.service
systemctl start network.service
 
You can check Network manager service with this command and make sure that disabled:
 
systemctl status NetworkManager.service
 
networkmanagerdisable
 
That’s all.

2 thoughts on “How to Disable Network Manager on Centos 7

  1. Every weekend i used to pay a visit this web site, because i
    want enjoyment, as this this website conations in fact pleasant funny data too.

  2. Its such as you read my thoughts! You seem to grasp a
    lot approximately this, like you wrote the ebook in it or something.

    I think that you can do with some % to pressure the message home a bit,
    however other than that, that is magnificent blog.
    An excellent read. I’ll certainly be back.

Add Comment