• Contact: +91-08069248012

How to Configure Network Bonding (LACP) on Debian

Back

This process essentially consist of two steps. I will be detailing steps relevant for the Linux host.

  • Configuring the switch for LACP bonding.
  • Configuring the Linux host for LACP bonding.

Prerequisites

  • ifenslave
  • Shut down the network after installing ifenslave.
  • Start the network once the configuration changes are in place.

Steps

This is a virtual package and will in reality install ifenslave-2.6

# apt-get install ifenslave

Stop the network. Make sure you’re not connected via SSH while doing this.

# /etc/init.d/networking stop

Debian Kernel Module Configuration

vi /etc/modules
bonding
mii

Debian Network Configuration

vi /etc/network/interfaces
auto bond0
iface bond0 inet static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0
bond-lacp-rate 1
bond-slaves eth0 eth1

Enable Bonding Mode :

vi /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bonding mode=4 miimon=100 downdelay=200 updelay=200 xmit_hash_policy=layer3+4

Resolver Configuration

vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

Start up the network.

# /etc/init.d/networking start