First remove NetworkManager:
# systemctl stop NetworkManager # systemctl disable NetworkManager rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service' rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service' rm '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service' # yum -y remove NetworkManager* # /usr/bin/rm -rf /etc/NetworkManager
If you want to be more productive you should clean your system from FirewallD, install iptables-services and if you are going to install a redhat product/software disable SELinux as it’s manual going to suggest !
Now we can proceed.
# systemctl status network.service
will show us /etc/rc.d/init.d/network as the network orchestrator on the system.
Reading this file will get you a basic understanding of networking.
if [ ! -f /etc/sysconfig/network ]; then exit 6 fi
that tells us that file: /etc/sysconfig/network must exist on our system.
If you want to disable the network on this linux machine you can do it by adding the below declaration:
NETWORKING=no
So here are my notes for bonding:
eth0 + eth1 = bond0 with Adaptive transmit load balancing:
# cat /etc/sysconfig/network-scripts/ifcfg-em1 DEVICE=em1 MASTER=bond0 SLAVE=yes # cat /etc/sysconfig/network-scripts/ifcfg-em2 DEVICE=em2 MASTER=bond0 SLAVE=yes
and bond0:
DEVICE=bond0 BONDING_OPTS="miimon=1 updelay=0 downdelay=0 mode=balance-tlb" TYPE=Bond BONDING_MASTER=yes DNS1=xxx.xxx.xxx.xxx GATEWAY=8.8.8.8 IPADDR=xxx.xxx.xxx.1 PREFIX=24 DEFROUTE=yes BOOTPROTO=none ONBOOT=yes
and as yoda would tell:
“else everything do not need you”