i use this setup for few lxc servers. bonding provides me layer2 failover based on arp probes [ so it’ll work even if switch link stays up yet forwarding fails the mechanism will kick in ].
this is continuation of an earlier post, this time under debian stretch
1 | apt-get install bridge-utils ifenslave vlan |
/etc/network/interfaces:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # The loopback network interface auto lo iface lo inet loopback auto bond0 iface bond0 inet manual bond-mode active-backup bond-primary eno1 bond-arp-interval 100 bond-arp-ip-target 10.10.10.1 bond-arp-validate all slaves eno1 eno2 auto br.11 iface br.11 inet static vlan-raw-device bond0 address 10.10.10.31/24 gateway 10.10.10.1 dns-nameservers 10.10.10.1 bridge-ports bond0.11 bridge-stp off auto br.10 iface br.10 inet manual bridge-ports bond0.10 vlan-raw-device bond0 bridge-stp off |
/etc/modules includes
1 | bonding |