Skip to content

Instantly share code, notes, and snippets.

@spikeheap
Last active January 16, 2024 22:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spikeheap/7857064 to your computer and use it in GitHub Desktop.
Save spikeheap/7857064 to your computer and use it in GitHub Desktop.
A sample /etc/network/interfaces file for Raspberry Pi using WiFi. Be sure to set your WiFi SSID and shared key!
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.222
netmask 255.255.255.0
gateway 192.168.0.1
broadcast 192.168.0.1
dns-nameservers 192.168.0.1
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "myhomenetwork"
wpa-psk "mysharedkey"
gateway 192.168.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment