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