Skip to content

Instantly share code, notes, and snippets.

@insdavm
Created December 13, 2018 20:28
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 insdavm/c3300de781cb00bd9182096c9a578deb to your computer and use it in GitHub Desktop.
Save insdavm/c3300de781cb00bd9182096c9a578deb to your computer and use it in GitHub Desktop.
Basic netplan config for DHCP ethernet on Ubuntu Server 18.04.1 LTS
# file in /etc/netplan/01-netcfg.yaml
# spacing for indents just need to be consistent
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
addresses: []
dhcp4: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment