Skip to content

Instantly share code, notes, and snippets.

@eib
Created August 28, 2015 05:34
Show Gist options
  • Save eib/ad4873bb1ccb326baaac to your computer and use it in GitHub Desktop.
Save eib/ad4873bb1ccb326baaac to your computer and use it in GitHub Desktop.
Network configuration on a Raspberry Pi
# File: /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
auto eth0
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<favoriteNetwork>"
psk="<password>"
priority=1000
}
network={
ssid="<altNetwork>"
psk="<password>"
priority=100
}
network={
ssid="<unsecuredNetwork>"
key_mgmt=NONE
priority=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment