How to Disable Network Manager
Last modified: December 2, 2022
This document describes how to disable the Network Manager service in supported operating systems. The Network Manager service automates the system’s network settings and disrupts connections to the IP addresses that reside in the
When you disable the Network Manager service, you disable this automation. You must manually address any changes to the system’s network settings. For example, if you disable the Network Manager, then reboot the system, the system will not automatically reconnect any preexisting connections.
- cPanel, L.L.C. (which includes cPanel & WHM and cPanel Technical Support) does not support the Network Manager service.
- Exercise extreme caution when you disable the Network Manager service. Your server may lose its network services if you do not disable Network Manager correctly.
- CentOS 7 systems (as well as CloudLinux and Red Hat Enterprise Linux) include the
network.servicepackage by default, but do not enable the package. You must disable the Network Manager service and enable the
network.serviceservice before you install cPanel & WHM. Currently, the cPanel & WHM installer does not automatically disable Network Manager in these systems.
For more information about how to disable the Network Manager service, read RedHat’s Disabling Network Manager documentation.
On systems that run the AlmaLinux OS 8 or Rocky Linux™ 8 operating systems, the cPanel & WHM installer will automatically disable the Network Manager service and enable the
Disable the Network Manager service
To disable the Network Manager service, perform the following steps:
- Disable Network Manager with the following commands:
- CloudLinux 6:
service NetworkManager stop chkconfig NetworkManager off
- All other supported operating systems:
systemctl stop NetworkManager systemctl disable NetworkManager
- CloudLinux 6:
- Change to the
- Open the
ifcfg-lofiles with your preferred text editor and, if they exist, set the following keys’ values:
NM_CONTROLLED=no ONBOOT=yesImportant:If either of these keys does not exist in your
ifcfg-lofiles, do not add it. Instead, proceed to Step 4.
- Run the following commands to restart the network:
chkconfig network on service network start
All other supported operating systems:
systemctl enable network.service systemctl start network.service