0193 | bonding config บน debian/ubuntu
ก่อนอื่น
อย่าลืมลง ifenslave-2.6 !!!
แก้ไฟล์ /etc/network/interfaces ประมาณนี้ฮะ
auto lo
iface lo inet loopback
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.0.2.1
netmask 255.255.255.0
gateway 192.0.2.254
bond-mode 802.3ad
bond-miimon 100
bond-downdelay 200
bond-updelay 200
bond-xmit-hash-policy layer3+4
bond-slaves none
แล้วก็ไฟล์ /etc/modprobe.d/bonding.conf ประมาณนี้ครับ
alias bond0 bonding options bonding mode=4 miimon=100 lacp_rate=1
