Example configuration of nic bonding in Ubuntu 20.x for /etc/netplan/XXXXX.yaml
once done do: netplan apply (cannot try)
Adjusted the hash policy else will default to all one nic instead of using layer3/4 to balance it over both nics.
echo "layer3+4" > /sys/class/net/bond0/bonding/xmit_hash_policy
network:
version: 2
renderer: networkd
ethernets:
enp3s0f0:
dhcp4: no
enp3s0f1:
dhcp4: no
bonds:
bond0:
interfaces: [enp3s0f0, enp3s0f1]
addresses: [68.235.56.115/29]
gateway4: 68.235.56.113
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
parameters:
mode: 802.3ad
lacp-rate: fast