Scripting
NIC Teaming On Linux
Also known as NIC Teaming. The full install guide can be found here : Official Docs
vi /etc/modprobe.conf
Insert the following at the end :
alias bond0 bonding options bond0 mode=5 miimon=100 downdelay=200 updelay=200
vi /etc/sysconfig/network-scripts/ifcfg-eth0
This should read :
DEVICE=eth0 #HWADDR=40:02:A5:49:17:A6 (Original MAC) USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none
Do the same for ifcfg-eth1
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0 IPADDR=192.168.1.1 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 ONBOOT=yes BOOTPROTO=none USERCTL=no
It is not necessary to make a valid MAC up, the bond will use the MAC of the primary card.
then :
/etc/sysconfig/network restart
to check it works,
[root@ferret ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v2.6.1 (October 29, 2004) Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 0 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:02:a5:49:17:a6 Slave Interface: eth1 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:02:a5:49:17:a7