Last active
May 6, 2021 03:33
-
-
Save wonderbeyond/c4b354f4a9aea87b8affcbad59cfe7ff to your computer and use it in GitHub Desktop.
ubuntu server (20.04, 18.04) netplan conf example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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