Router
network:
ethernets:
eno1:
dhcp4: false
addresses:
- 192.168.40.1/24
nameservers:
addresses: [192.168.40.241]
enp1s0:
dhcp4: false
addresses:
- 10.0.0.30/24
nameservers:
addresses: [1.1.1.1]
routes:
- to: default
via: 10.0.0.138
version: 2
renderer: networkd
Bond
# This is the network config written by 'subiquity'
network:
version: 2
bonds:
bond0:
addresses:
- 192.168.40.1/24
interfaces:
- eno1
- eno2
nameservers:
addresses: [192.168.40.241]
search: []
parameters:
lacp-rate: fast
mode: balance-alb
ethernets:
eno1: {}
eno2: {}
ens1:
dhcp4: false
addresses:
- 10.0.0.30/24
nameservers:
addresses: [9.9.9.9]
routes:
- to: default
via: 10.0.0.138
Explanation on stackoverflow about balance-alb mode says:
Bonding Mode 6 (balance-alb) works as above, except incoming ARP requests are intercepted by the bonding driver, and the bonding driver generates ARP replies so that external hosts are tricked into sending their traffic into one of the other bonding slaves instead of the primary slave. If many hosts in the same broadcast domain contact the bond, then traffic should balance roughly evenly into all slaves.