BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to Disable the Network Manager

Posted by Allura on 15 05 2019.

An Introductory Overview
The following article will talk about how to disable the Network Manager service in relation to cPanel or WHM.The functions of the Network Manager service are the following:It manages and automates the settings of the given network.
It also disturbs or ends connections to those IP addresses which reside in particular in the ipaliases module.Further it is important to note that extreme caution must be exercised by the given user when disabling the Network Manager service. This is particularly significant as incorrectly disabling the Network Manager can have far-reaching effects such as the loss of network services altogether.Note/Warning:One must keep in mind that it is necessary to either disable or to enable the Network Manager service before having even installed cPanel or WHM. 
Disabling the Network Manager Service
One has to simply correctly execute the following steps in order to successfully disable the Network Manager:One must ‘Run’…

An Introductory Overview

The following article will talk about how to disable the Network Manager service in relation to cPanel or WHM.

The functions of the Network Manager service are the following:

  • It manages and automates the settings of the given network.
  • It also disturbs or ends connections to those IP addresses which reside in particular in the ipaliases module.

Further it is important to note that extreme caution must be exercised by the given user when disabling the Network Manager service. This is particularly significant as incorrectly disabling the Network Manager can have far-reaching effects such as the loss of network services altogether.

Note/Warning:

One must keep in mind that it is necessary to either disable or to enable the Network Manager service before having even installed cPanel or WHM.

 

Disabling the Network Manager Service

One has to simply correctly execute the following steps in order to successfully disable the Network Manager:

  • One must ‘Run’ the command ‘ Disable NetworkManager’ in order to execute the same on CloudLinux 6, Amazon Linux, Red Hat Enterprise Linux 6 or CentOS 6.
  • The same aforementioned command, ‘Disable NetworkManager’ has to be Run in order to effect the change in CentOS 7, Red Hat Enterprise Linux 7 or CloudLinux 7.
  • Once the above step has been completed, one has to change to the following – /etc/sysconfig/network-scripts directory.
  • One must locate the ifcfg-eth0 and/or ifcfg-lo files on the given server and open the same using any Text Editor that one is familiar with.
  • Having executed the previous step, one has to set the following key values respectively –

NM_CONTROLLED=no
ONBOOT=yes

However, this can be done only if the above key values exist in the given server.

Note:

In a circumstance where either of the aforementioned keys so not exist on one’s ifcfg-eth0 and ifcfg-lo files, one should not attempt to add the same.

Instead, it is advisable to proceed directly to the next outlined step in the process.

  • Finally, one has to restart the Network in order to ensure that the Network Manager service has been disabled successfully. This can be done by running the following command:
  • Restart the Network in Cloudlinux 6, CentOS 6, Red Hat Enterprise Linux 6, Amazon 6 or in CentOS 7, Cloudlinux 7 or RHEL 7.

Note:

The above steps should be executed or performed from the server’s console in order to ensure that there is no interruption to the network’s connectivity during the same.

 

Concluding Thoughts

Successfully following or performing the steps outlined in the document will enable a user to Disable the Network Manager service. However, it is important to exercise caution while doing the same.