Bonding Network CentOS 7

*** Enable Bonding kernel module
#modprobe --first-time bonding

 ***View the bonding module information
#modinfo bonding

***Create bond0 configuration
#vi /etc/sysconfig/network-scripts/ifcfg-bond0

***Add the following lines. 
DEVICE=bond0
NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
IPADDR=<IP Address>
PREFIX=<Netmask>
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=<Number Mode> miimon=100"

***BONDING_OPTS Mode 
mode=0 (balance-rr) เป็นการส่งข้อมูลแบบ round-robin (load balancing, fault tolerance)
mode=1 (active-backup) สถานการณ์ปกติจะมีพอร์ตเดียวเท่านั้นที่ใช้รับส่งข้อมูล (fault tolerance)
mode=2 (balance-xor) เป็นการส่งข้อมูลแบบใช้ XOR เพื่อหาพอร์ตที่จะส่ง เช่นคำนวณจาก MAC Address ต้นทางปลายทางเป็นต้น (load balancing, fault tolerance)
mode=3 (broadcast)
mode=4 (802.3ad) เป็นส่งข้อมูลแบบ Link Aggregation Control Protocol (LACP) / 802.3ad
mode=5 (balance-tlb) ส่งข้อมูลแบบ Adaptive transmit load balancing
mode=6 (balance-alb) ส่งข้อมูลแบบ Adaptive load balancing

***Configure Network interfaces
vi /etc/sysconfig/network-scripts/ifcfg-<Name Interface>

***Modify the file as shown below.
HWADDR=<MAC Address>
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=<Name Interface>
UUID=<UUID Number>
ONBOOT="yes"
MASTER=bond0
SLAVE=yes

***Restart network service
#systemctl restart network

***Check whether the bonding interface bond0
#cat /proc/net/bonding/bond0

-------------- The End -----------------------------------

Bonding Network CentOS 7

By Chadchai Praphasanobol

Bonding Network CentOS 7

  • 547