Skip to content

Instantly share code, notes, and snippets.

@sirleech
Last active December 14, 2015 22:09
Show Gist options
  • Save sirleech/5156451 to your computer and use it in GitHub Desktop.
Save sirleech/5156451 to your computer and use it in GitHub Desktop.
Raspberry Pi /etc/networks/interface for static ips and wireless dongle with WPA2-Personal
auto lo
# assign static IP 192.168.1.55
# gateway = your router IP
iface lo inet loopback
iface eth0 inet static
address 192.168.1.55
netmask 255.255.255.0
gateway 192.168.1.254
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
wpa-ssid "WhateverYourNetworksCalled"
wpa-psk "passphrasegoeshere"
address 192.168.1.55
netmask 255.255.255.0
gateway 192.168.1.254
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment