Skip to content

Instantly share code, notes, and snippets.

@typelogic
Created February 11, 2019 12:32
Show Gist options
  • Save typelogic/88ef2ed3b2f1cdd87ff12b0cd07a6e53 to your computer and use it in GitHub Desktop.
Save typelogic/88ef2ed3b2f1cdd87ff12b0cd07a6e53 to your computer and use it in GitHub Desktop.
ubuntu 18.04 cloud-init networking
[instead of /etc/network/interfaces]
/etc/netplan/*.yml
[IPV4 daemon]
systemctl status isc-dhcp-server.service
dpkg -l cloud-init
[install dhcp server]
apt-get install -y isc-dhcp-server
```yml
# netplan yaml sample
network:
ethernets:
enp0s3:
addresses: []
dhcp4: true
enp0s8:
addresses: [192.168.69.69/24]
gateway4: 192.168.69.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
dhcp4: no
version: 2
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment