Bonding – Debian
Bonding 2×2 Ethernet ( Active / Standby )
apt-get install ifenslave
cat /etc/modprobe.d/bond
alias bond0 bonding # alias bond1 bonding options bond0 mode=1 miimon=100 # options bond1 mode=1 max_bonds=2 miimon=100 # mode1 = fault-tolerance (active-backup)
cat /etc/network/interfaces
################################## ## LOOPBACK INTERFACE ################################## auto lo iface lo inet loopback ################################## ## PRIMARY NETWORK INTERFACE ################################## auto bond0 iface bond0 inet static address 192.168.10.251 netmask 255.255.255.28 gateway 192.168.10.254 ## THE FOLLOWING IFENSALVE MUS BE AT END OF CONFIG OF THIS INTERFACE up ifenslave bond0 eth0 eth1 down ifenslave -d bond0 eth0 eth1
Um die änderungen zu aktivieren ist der einfachste Weg das System zu rebooten.
Inferface während des Betriebs umschalten:
ifenslave bond0 -c eth1
Aktives Interface anzeigen:
cat /proc/net/bonding/bond0