Skip to content

Instantly share code, notes, and snippets.

@Max95Cohen
Created March 1, 2023 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Max95Cohen/e204a749edaa86b9488e8ebc9c9d1e86 to your computer and use it in GitHub Desktop.
Save Max95Cohen/e204a749edaa86b9488e8ebc9c9d1e86 to your computer and use it in GitHub Desktop.
netplan config
network:
ethernets:
eno1:
addresses:
- 192.168.10.4/24
dhcp4: no
routes:
- to: 192.168.10.0/24
via: 192.168.10.1
routing-policy:
- from: 192.168.10.0/24
eno2:
addresses:
- 111.112.11.12/24
dhcp4: no
routes:
- to: default
via: 111.112.11.10
nameservers:
addresses: [1.1.1.1, 2.2.2.2]
version: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment