Ethernet bonding / trunking

Roger L. Beck -

This article describes the setup and configuration of how to bond Ethernet devices.

Bonding can be done on almost every Linux distribution, this article assumes you are on a RedHat based system.

Create a channel bonding interface

Create a new (master) interface configuration file: /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no

Add slave device(s) to the bond

/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no

/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
NM_CONTROLLED=no

Add bonding module to the kernel

Create configuration file /etc/modprobe.d/bonding.conf

alias bond0 bonding
options bond0 miimon=100 mode=802.3ad

Reboot and check config

Reboot the server and verify that the bonding modules has been loaded

cat /proc/net/bonding/bond0

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.