Last active
October 17, 2018 09:42
-
-
Save jamielsharief/027ff684aee422247f1f3e93c6c06821 to your computer and use it in GitHub Desktop.
Ubuntu 18 static Ip address configuration.
This file contains 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
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] |
This file contains 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
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