Configuration du bonding pour debian :
Installer le paquet correspondant a votre version du noyau Linux :
apt-get install ifenslave-2.6
ou
apt-get install ifenslave-2.4
Les options du module bonding sont a placer dans le fichier /etc/modprobe.d/bonding :
alias bond0 bonding options bonding mode=active-backup miimon=100 downdelay=200 updelay=200
Ensuite, configurer le réseau dans le fichier /etc/network/interfaces. Commenter les lignes concernant les interfaces eth0, eth1, ethX, puis ajouter les lignes suivantes (pensez a modifier votre adresse ip):
auto bond0 iface bond0 inet static address 10.1.24.X netmask 255.255.255.0 network 10.1.24.0 broadcast 10.1.24.255 gateway 10.1.24.254 up /sbin/ifenslave bond0 eth0 eth1 dns-nameservers 193.49.184.17 dns-search u-picardie.fr
Deconfigurez les interfaces ethX :
ifconfig eth0 down ifconfig eth1 down
Chargez le module bonding :
modprobe bonding
Verifiez que le module est correctement chargé, vous ne devez pas avoir la ligne suivante dans la sortie de dmesg :
bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details.
Si tout se passe bien, activez l'interface bond0 :
ifup bond0