Basic bonding snippets for /etc/network/interfaces
style configuration.
auto lo
iface lo inet loopback
auto eno1np0
allow-hotplug eno1np0
iface eno1np0 inet manual
auto eno1np1
allow-hotplug eno1np1
iface eno1np1 inet manual
auto bond0
allow-hotplug bond0
iface bond0 inet manual
bond-mode 802.3ad
bond-miimon 100
bond-updelay 500
bond-slaves eno1np0 eno1np1
auto bond0.310
iface bond0.310 inet static
address 192.0.2.5/24
gateway 192.0.2.1
To use iproute2 to create a bonding interface:
ip link add bond0 type bond mode 802.3ad
ip link set eno1np0 master bond0
ip link set eno1np1 master bond0