Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager 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 user access.

Disable Network Manager

To disable the Network Manager in CentOS 7, perform the following steps:

  1. From the command line, login as root user.
  2. Run the commands:
    systemctl stop NetworkManager
    systemctl disable NetworkManager
  3. Change to the /etc/sysconfig/network-scripts directory:
    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 restart the network:
    systemctl enable network.service
    systemctl start network.service

Network Manager is now disabled and the network restarted.

Uninstall Network Manager

To uninstall the Network Manager, perform the following steps:

  1. From the command line, login as root user.
  2. Run the command:
    yum remove NetworkManager -y

Network Manager has now been removed from your CentOS 7 server.

RELATED: Disable Network Manager in CentOS 6

RELATED: Disable Network Manager in CentOS 8

  • disable network manager, network manager, cpanel network manager, centos 7
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

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

htaccess RewriteRule Examples

Here are some useful mod_rewrite RewriteRule redirect examples that you can use in your .htaccess...

Using htaccess File to Block IPs

If your webserver is Apache, you may block access to your website from specific IP addresses...