Skip to content

Instantly share code, notes, and snippets.

@hytdsh
Created December 6, 2017 08:02
Show Gist options
  • Save hytdsh/81c410924009d7e3af979bdfc1b274dd to your computer and use it in GitHub Desktop.
Save hytdsh/81c410924009d7e3af979bdfc1b274dd to your computer and use it in GitHub Desktop.
# 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
@hakamibrahim
Copy link

I have ubuntu server 18.04 LTS on my virtual machine,but this file not exist in /etc/netplan/
can give me a solution?

@JJClements
Copy link

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