This article will provide the steps to disable NetworkManager in CentOS 8. NetworkManager is not compatible with some 3rd party software, such as cPanel, and must be disabled prior to installing the conflicting programs.
The following guide requires root-level permissions.
Disable NetworkManager for CentOS 8
To disable the NetworkManager in CentOS 8, perform the following steps:
- From the command line, login as root user.
- Run the commands:
sudo systemctl stop NetworkManager sudo systemctl disable NetworkManager
- Change to the
/etc/sysconfig/network-scriptsdirectory:sudo cd /etc/sysconfig/network-scripts
- Open the
ifcfg-eth0andifcfg-lofiles with your preferred text editor and, if they exist, set the following keys' values:
NM_CONTROLLED=no ONBOOT=yes
- Run the following commands to enable and restart the network service:
sudo systemctl enable network.service sudo systemctl start network.service
NetworkManager service is now disabled and the network service is enabled.
Uninstall NetworkManager
To uninstall the NetworkManager, perform the following steps:
- From the command line, login as root user.
- Run the command:
sudo dnf remove NetworkManager -y
Network Manager has now been removed from your CentOS 8 server.
RELATED: Disable Network Manager in CentOS 6
RELATED: Disable Network Manager in CentOS 7

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.