Skip to content

Instantly share code, notes, and snippets.

@robofoundry
Created November 13, 2021 21:18
Show Gist options
  • Save robofoundry/72ccf488b96fc9b80b4fd59d8f2539cb to your computer and use it in GitHub Desktop.
Save robofoundry/72ccf488b96fc9b80b4fd59d8f2539cb to your computer and use it in GitHub Desktop.
network-config for Pi Zero 2W
# This file contains a netplan-compatible configuration which cloud-init will
# apply on first-boot (note: it will *not* update the config after the first
# boot). Please refer to the cloud-init documentation and the netplan reference
# for full details:
#
# https://cloudinit.readthedocs.io/en/latest/topics/network-config.html
# https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v2.html
# https://netplan.io/reference
#
# Please note that the YAML format employed by this file is sensitive to
# differences in whitespace; if you are editing this file in an editor (like
# Notepad) which uses literal tabs, take care to only use spaces for
# indentation. See the following link for more details:
#
# https://en.wikipedia.org/wiki/YAML
#
# Some additional examples are commented out below
version: 2
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
"YOUR_WIFI_SSD_NAME_HERE":
password: "YOUR_WIFI_PASSWORD_HERE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment