ifenslaveパッケージのインストール
# aptitude install ifenslave
bondingモジュールの設定
vi /etc/modprobe.d/bonding.conf
mii監視
alias bond0 bonding options bonding mode=0 miimon=100
arp監視
alias bond0 bonding options bonding mode=1arp_interval=1000 arp_ip_target=172.25.142.254,172.25.142.253
モジュール自動ロード
# vi /etc/modules
bonding
bondingインタフェースの設定
# vi /etc/network/interfaces
# The primary network interface iface eth0 inet manual # The secondary network interface iface eth1 inet manual # The bonding interface auto bond0 iface bond0 inet manual slaves eth0 eth1 # The bridge network interface auto br0 iface br0 inet static address 192.168.0.7 network 192.168.0.0 netmask 255.255.255.0 gateway 192.168.0.1 broadcast 192.168.0.255 bridge_ports bond0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off