Main: Info Blog Temp Mail

unix 2019-05-28 07-32-58

Disabling NetworkManager in RHEL 5,6

The steps below will disable network manager and allow the interface to be managed by the network service instead.

1. Stop the NetworkManager service using service command.

# service NetworkManager stop
2. Disable it permanently so that the NetworkManager service will not be started on next boot. Use the command chkconfig to disable the NetworkManager service to not start across reboots.

# chkconfig NetworkManager off
3. Verify if the NetworkManager service has been disabled.

# chkconfig --list|grep NetworkManager
4. Add below parameter in /etc/sysconfig/network-scripts/ifcfg-ethX to ensure NetworkManagerdoes not take control of the interface in case if it is accidentally activated.

Note: If you do not change NM_CONTROLLED=”yes” to “no”, the network service may complain about “Connection activation failed” when it cannot find an interface to start.
Switching to the “network” service
Once NetworkManager is disabled, the interface can be configured for use with the network service.

1. Set the correct IP address by editing the file: /etc/sysconfig/network-scripts/ifcfg-eth0

2. Set the DNS servers to be used by editing the file /etc/resolv.conf.

3. Enable the network service to start after boot autmoatically and restart it.

# chkconfig network on
# service network restart / 2023-12-09_11-25-48 UTC.