bonding

Ubuntu
安装 ifenslave,用来将 slave 接口 attach/detach 到 bonding 设备:
$ sudo apt-get install ifenslave

$ cat /etc/modprobe.d/bond.conf
alias bond0 bonding
options bonding mode=1 miimon=100

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto bond0
iface bond0 inet static
 address 192.168.10.53
 netmask 255.255.255.0
 gateway 192.168.10.254
 bond-slaves eth0 eth1

$ sudo /etc/init.d/networking restart
Continue reading