Skip to content

Instantly share code, notes, and snippets.

@wonderbeyond
Last active May 6, 2021 03:33
Show Gist options
  • Save wonderbeyond/c4b354f4a9aea87b8affcbad59cfe7ff to your computer and use it in GitHub Desktop.
Save wonderbeyond/c4b354f4a9aea87b8affcbad59cfe7ff to your computer and use it in GitHub Desktop.
ubuntu server (20.04, 18.04) netplan conf example
# /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
addresses:
- 172.23.10.197/24
- 172.23.10.198/24
gateway4: 172.23.10.254
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment