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

Remove a Service from ChkServd Monitoring for cPanel Servers

This guide requires root user account in server. In some circumstances, ChkservD cPanel...

Assigning a Dedicated IP Address to a Subdomain using WHM

To assign a dedicated IP address to a subdomain, perform the following steps: Step 1: Add the...

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