Skip to content

Instantly share code, notes, and snippets.

@ethicnology
Created June 3, 2023 07:20
Show Gist options
  • Save ethicnology/dd6d0cd795f4ef2abc0442a161e1678d to your computer and use it in GitHub Desktop.
Save ethicnology/dd6d0cd795f4ef2abc0442a161e1678d to your computer and use it in GitHub Desktop.
Netplan two-port Ethernet link with round-robin fault tolerance and load balancing
# based on: https://www.hughesportal.com/blog.php?article=setup-network-bonding-using-netplan
network:
version: 2
ethernets:
enp2s0f0:
dhcp4: no
dhcp6: no
enp2s0f1:
dhcp4: no
dhcp6: no
bonds:
bond0:
dhcp4: no
dhcp6: no
interfaces:
- enp2s0f0
- enp2s0f1
addresses: [192.168.1.140/24]
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [1.1.1.1, 9.9.9.9]
parameters:
mode: balance-rr
lacp-rate: fast
primary: enp2s0f0
mii-monitor-interval: 100
@ethicnology
Copy link
Author

Still don't know why:

bond0: reverting custom parameters for bridges and bonds is not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment