Setup Ethernet Bonding on RHEL 6

Scenario: Configure 4 ethernet into 2 ethernet bond0 and bond1 on RHEL 6/CentOS 6.
System: RHEL 6.9

Steps:
1) Create new file bond0 (Eth0+Eth1) with IP Address = 172.16.10.70
# vi /etc/sysconfig/network-scripts/ifcfg-bond0

– Configure Eth0:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

– Configure Eth1:
# vi /etc/sysconfig/network-scripts/ifcfg-eth1

2) Create new file Bond1 (Eth2+Eth3) with IP Address = 172.16.110.70
# vi /etc/sysconfig/network-scripts/ifcfg-bond1

– Configure Eth2:
# vi /etc/sysconfig/network-scripts/ifcfg-eth2

– Configure Eth3:
# vi /etc/sysconfig/network-scripts/ifcfg-eth3

3) Configure ethernet bonding mode (in this scenario bonding mode is LACP).
List of bonding mode:
– balance-rr or 0 — round-robin mode for fault tolerance and load balancing.
– active-backup or 1 — Sets active-backup mode for fault tolerance.
– balance-xor or 2 — Sets an XOR (exclusive-or) mode for fault tolerance and load balancing.
– broadcast or 3 — Sets a broadcast mode for fault tolerance. All transmissions are sent on all slave interfaces.
– 802.3ad or 4 — Sets an IEEE 802.3ad dynamic link aggregation mode. Creates aggregation groups that share the same speed & duplex settings.
– balance-tlb or 5 — Sets a Transmit Load Balancing (TLB) mode for fault tolerance & load balancing.
– balance-alb or 6 — Sets an Active Load Balancing (ALB) mode for fault tolerance & load balancing.

– Create new file.
# vi /etc/modprobe.d/bonding.conf

4) Try service network restart or reboot the server.
5) Check the bonding configuration if successfull will show the ip address and you can ping to the server.
# ifconfig

6) Verify the Status of bond interface.
# cat /proc/net/bonding/bond0

Finish.

Reference:
https://www.linuxtechi.com/network-bonding-centos-6-rhel-6/


Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *