Skip to content

Instantly share code, notes, and snippets.

@sainak
Last active February 9, 2024 06:16
Show Gist options
  • Save sainak/b6ffe7c6243c6aec2f4ff576f7caeb91 to your computer and use it in GitHub Desktop.
Save sainak/b6ffe7c6243c6aec2f4ff576f7caeb91 to your computer and use it in GitHub Desktop.
Netplan configuration for network interface failover.
network:
version: 2
ethernets:
enp9s0:
dhcp4: false
wifis:
wlan0:
access-points:
"wifi":
password: "pass"
dhcp4: false
bonds:
bond0:
interfaces: [enp9s0, wlan0]
#macaddress: "xx:xx:xx:xx:xx:xx"
dhcp4: true
dhcp-identifier: mac
dhcp4-overrides:
use-dns: true
use-domains: true
ipv6-privacy: true
parameters:
mode: active-backup
fail-over-mac-policy: none
primary-reselect-policy: always
primary: enp9s0
mii-monitor-interval: 100
min-links: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment