Skip to content

Instantly share code, notes, and snippets.

@mkawserm
Created May 16, 2014 03:31
Show Gist options
  • Save mkawserm/6bcb1a055884d927413b to your computer and use it in GitHub Desktop.
Save mkawserm/6bcb1a055884d927413b to your computer and use it in GitHub Desktop.
My Raspberry Pi interfaces file contents With wi-fi configuration
auto lo
iface lo inet loopback
#allow-hotplug eth0
#auto eth0
iface eth0 inet static
address 192.168.43.2
network 192.168.43.0
broadcast 192.168.43.255
netmask 255.255.255.0
gateway 192.168.43.1
#post-up /etc/network/if-up.d/eth0.start
allow-hotplug usb0
iface usb0 inet static
address 192.168.42.11
network 192.168.42.0
netmask 255.255.255.0
broadcast 192.168.42.255
gateway 192.168.42.129
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.43.11
network 192.168.43.0
netmask 255.255.255.0
broadcast 192.168.43.255
gateway 192.168.43.1
wpa-scan-ssid 1
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "NetNode"
wpa-psk "mypass"
wpa-auth-alg OPEN
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
##pre-up iptables-restore < /etc/network/iptables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment