Channel Bonding

From Kyle's Wiki
Jump to: navigation, search

Channel Bonding is a way to utilize multiple nics to aggregate bandwidth and increase redundancy in your network design.

Redhat / Centos

Put this in /etc/modprobe.d/bonding.conf :

alias bond0 bonding
options bond0 miimon=100 mode=0

Now in your ifcfg-bond0 :

DEVICE=bond0
IPADDR=bla
NETMASK=bla
GATEWAY=bla
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MTU=9000
BONDING_OPTS=""

Now in your ifcfg-eth0 :

DEVICE="eth0"
HWADDR="bla"
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no

Repeat for other slave interfaces

Ubuntu / Debian

First run:

sudo apt-get install ifenslave

In /etc/network/interfaces :

auto eth0
iface eth0 inet manual
bond-master bond0

auto eth1
iface eth1 inet manual
bond-master bond0

auto bond0
iface bond0 inet static
        address 36.101.9.10
        netmask 255.255.0.0
        gateway 36.101.181.109
        mtu 9000
        bond_slaves none
        bond_mode 0

References

Personal tools
Namespaces

Variants
Actions
Efforts
Toolbox
Meta