Sunday, February 28, 2010

Ubuntu/Debian network adapter bonding

apt-get install ifenslave
nano /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bonding mode=0 miimon=100
modes:
0 – Transmit packets in sequential order from the first available slave through the last.
1 – Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails.
2 – This selects the same slave for each destination MAC address.
3 – Transmits everything on all slave interfaces.
4 – IEEE 802.3ad Dynamic link aggregation.
nano /etc/network/interfaces
auto lo
interface lo inet loopback
auto bond0
iface bond0 inet static
address 10.10.10.10
netmask 255.255.255.0
gateway 10.10.10.1
slaves eth0 eth1
bond-mode 0
bond-miimon 100

No comments:

Post a Comment