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:
    NM_CONTROLLED=no
    ONBOOT=yes
  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 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

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 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,...

Set Server Time Zones with Timedatectl

This article provides a guide to setting the server time and server time zone settings using...

508 Resource Limit is Reached

If your website is on a cPanel hosting account, you may have noticed the following error message:...