Skip to content

Instantly share code, notes, and snippets.

@jamielsharief
Last active October 17, 2018 09:42
Show Gist options
  • Save jamielsharief/027ff684aee422247f1f3e93c6c06821 to your computer and use it in GitHub Desktop.
Save jamielsharief/027ff684aee422247f1f3e93c6c06821 to your computer and use it in GitHub Desktop.
Ubuntu 18 static Ip address configuration.
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.1.37/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
sudo vi /etc/netplan/50-cloud-init.yaml
sudo netplan apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment