Skip to content

Instantly share code, notes, and snippets.

@jonneale
Created April 29, 2023 14:18
Show Gist options
  • Save jonneale/4fe7fd2811bb61c251975d542fdc09a9 to your computer and use it in GitHub Desktop.
Save jonneale/4fe7fd2811bb61c251975d542fdc09a9 to your computer and use it in GitHub Desktop.
Multiple NICs with ethernet preferred over wifi but both operating
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
addresses: [192.168.15.2/24]
routes:
- to: 0.0.0.0/0
via: 192.168.15.1
metric: 100
nameservers:
search: [mydomain, otherdomain]
addresses: [192.168.15.1]
wifis:
wlx0013eff10948:
access-points:
"the-network":
password: "the-password"
addresses: [192.168.15.2/24]
routes:
- to: 0.0.0.0/0
via: 192.168.15.1
metric: 200
nameservers:
search: [mydomain, otherdomain]
addresses: [192.168.15.1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment