Active-backup bonds

rmundel

Renowned Member
May 9, 2015
34
7
73
Brazil
Hey guys, I'm wandering, one could do an active-backup bond of two LACP bonds?

Like this:

auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual

auto bond0
iface bond0 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3

auto bond1
iface bond1 inet manual
bond-slaves eno3 eno4
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3

auto bond2
iface bond2 inet manual
bond-slaves bond0 bond1
bond-miimon 200
bond-mode active-backup

auto vmbr0
iface vmbr0 inet static
address 10.0.0.10
netmask 255.255.255.0
gateway 10.0.0.254
bridge-ports bond2
bridge-stp off
bridge-fd 0
 
I'm wandering, one could do an active-backup bond of two LACP bonds?

Have you already tried? I have not, but in principle it should work.

Another approach would be to use a stacked HA switch that does this internally so that you just plug in the LACP endpoints and let the switch do the rest.
 
  • Like
Reactions: Stoiko Ivanov