Channel Bonding Guide on CentOS/RHEL


I’m recycling one of my old post regarding creating a channel bonding from multiple network interfaces with some updated instructions to make it work on modern linux distros.

..In a video format. Have look:

As for the config files’ templates:

/etc/sysconfig/modules/bonding.modules

#!/bin/sh

if [ ! -c /dev/input/uinput ] ; then
        exec /sbin/modprobe bonding >/dev/null 2>&1
fi

/etc/sysconfig/network-scripts/ifcfg-bondN:

DEVICE=bondN
IPADDR=aaa.bbb.ccc.ddd
NETMASK=ooo.ppp.qqq.rrr
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
BONDING_OPTS="mode=1 miimon=100 fail_over_mac=1"

Replace N with your bonding interface id (ie: bond0)
Replace aaa.bbb.ccc.ddd with the IP for the bonding interface
Replace ooo.ppp.qqq.rrr with the netmask for the network

/etc/sysconfig/network-scripts/ifcfg-ifx

DEVICE=ifx
BOOTPROTO=none
ONBOOT=yes
MASTER=bondN
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no

Replace ifx with your network interfaces’ ids (ie: eth0, enp0s3, etc)
Make sure that you put the name of your bonding interface for the value of “MASTER”

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s