Overview
This document describes how to disable the Network Manager service. The Network Manager service automates the network's settings and disrupts connections to the IP addresses that reside in the ipaliases
module.
For more information about how to disable the Network Manager service, read RedHat's Disabling Network Manager documentation.
Disable the Network Manager service
To disable the Network Manager service, perform the following steps:
-
Disable Network Manager with the following commands:
Disable NetworkManager on CentOS 6, CloudLinux 6, Red Hat Enterprise Linux 6 (RHEL), or Amazon Linux...
1
2
|
service NetworkManager stop
chkconfig NetworkManager off
|
Disable NetworkManager on CentOS 7, CloudLinux 7, or RHEL 7...
1
2
|
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
|
-
Change to the /etc/sysconfig/network-scripts
directory.
-
Open the ifcfg-eth0
and ifcfg-lo
files with your preferred text editor and, if they exist, set the following keys' values:
1
2
|
NM_CONTROLLED=no
ONBOOT=yes
|
-
Run the following commands to restart the network:
Restart the network on CentOS 6, CloudLinux 6, RHEL 6, or Amazon Linux...
1
2
|
chkconfig network on
service network start
|
Restart the network on CentOS 7, CloudLinux 7, or RHEL 7...
1
2
|
systemctl enable network.service
systemctl start network.service
|