How to configure network bonding (LACP) on Debian Wheezy

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

# aptitude 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

File: /etc/modprobe.d/bonding.conf

#/etc/modprobe.d/bonding.conf
alias bond0 bonding
        options bonding mode=4 miimon=100 lacp_rate=1

File: /etc/modules

echo "bonding" >> /etc/modules
echo "mii" >> /etc/modules

Debian Network Configuration

/etc/network/interfaces
#/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 192.168.0.10
     gateway 192.168.0.1
     netmask 255.255.255.0
     bond-mode 802.3ad
     bond-miimon 100
     bond-downdelay 200
     bond-updelay 200
     bond-lacp-rate 4
     bond-slaves none
     dns-nameservers 192.168.0.1
     dns-search domain.int

Start up the network.

# /etc/init.d/networking start

// CrashMAG

5 thoughts on “How to configure network bonding (LACP) on Debian Wheezy”

  1. Not use if bond-lacp-rate 4 is a valid option and is conflicting with the lacp_rate=1 option in the modules file. I think you can remove the lacp_rate=1 in the modules file and use bond-lacp-rate as option, as far as I seen the rate is either fast or slow. What do you think the rate 4 would mean?

  2. THANK YOU SO MUCH !

    it still works under jessie. I have been trying for hours. And it just worked in 5 minutes with your config.

    I just used lacp_rate=1

Leave a Reply

Your email address will not be published. Required fields are marked *

*