Created
December 6, 2017 08:02
-
-
Save hytdsh/81c410924009d7e3af979bdfc1b274dd to your computer and use it in GitHub Desktop.
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
# This file describes the network interfaces available on your system | |
# For more information, see netplan(5). | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp0s3: | |
dhcp4: no | |
addresses: [192.168.99.2/24] | |
gateway4: 192.168.99.1 | |
nameservers: | |
addresses: [8.8.8.8] | |
enp0s8: | |
dhcp4: yes | |
"nameservers: addresses: [8.8.8.8]" (and dnsmasq.conf) relays DNS query to Google Public DNS.
in this case, not need /etc/sysmtemd/resolved.conf
I have ubuntu server 18.04 LTS on my virtual machine,but this file not exist in /etc/netplan/
can give me a solution?
I have ubuntu server 18.04 LTS on my virtual machine,but this file not exist in /etc/netplan/
can give me a solution?
sudo netplan generate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
placed as /etc/netplan/01-netcfg.yaml
Ref: http://manpages.ubuntu.com/manpages/artful/man5/netplan.5.html