Skip to content

Instantly share code, notes, and snippets.

@jgram925
Last active June 15, 2019 17:52
Show Gist options
  • Save jgram925/e2d8264c4d69da9e0a44bc264ec5d5a5 to your computer and use it in GitHub Desktop.
Save jgram925/e2d8264c4d69da9e0a44bc264ec5d5a5 to your computer and use it in GitHub Desktop.
Netplan - Set Static IP
sudo nano /etc/netplan/01-netconf.yaml
network:
version: 2
renderer: networkd
ethernets:
ens33:
addresses: [10.6.0.84/16]
gateway4: 10.6.0.1
dhcp4: false
nameservers:
addresses: [10.6.18.234]
sudo netplan apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment