Disable Network Manager on CentOS 8

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:

  1. From the command line, login as root user.
  2. Run the commands:
    sudo systemctl stop NetworkManager
    sudo systemctl disable NetworkManager
  3. Change to the /etc/sysconfig/network-scripts directory:
    sudo cd /etc/sysconfig/network-scripts
  4. Open the ifcfg-eth0 and ifcfg-lo files with your preferred text editor and, if they exist, set the following keys' values:
  5. 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:

  1. From the command line, login as root user.
  2. 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

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 View Server PHP Environment with phpinfo.php

The phpinfo() function outputs a huge amount of information about the system you're using, such...

 How to Change Root Password Using SSH

This article explains the method of changing the root password on a Linux Server using SSH....

 How to Create Sudo User on CentOS

This article provides step-by-step setup guide for adding Sudo user to CentOS system. The sudo...

 How to Use Sudo

This article provides a guide to using a Sudo user on CentOS server. From the command line,...

 Import SSH Keys on CentOS 7 Server

This article provides a guide for importing SSH keys to CentOS 7 VPS server or Dedicated Server....

Powered by WHMCompleteSolution