Created
February 11, 2019 12:32
-
-
Save typelogic/88ef2ed3b2f1cdd87ff12b0cd07a6e53 to your computer and use it in GitHub Desktop.
ubuntu 18.04 cloud-init networking
This file contains hidden or 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
[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