Skip to content

Instantly share code, notes, and snippets.

@tpiekarski
Created March 12, 2020 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpiekarski/8db04d8eec05ed879a8df8bb53f35a3c to your computer and use it in GitHub Desktop.
Save tpiekarski/8db04d8eec05ed879a8df8bb53f35a3c to your computer and use it in GitHub Desktop.
Example netplan configuration for static IP
network: # No NetworkManager entry
version: 2
wifis:
some-wifi-device:
dhcp4: no
dhcp6: no
addresses: [192.168.0.42/24]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4] # Google DNS Service
access-points:
"SomeSSID":
password: "somePassword" # Clear-text password :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment