Skip to content

Connect to an existing network

Jon Senra Dearle edited this page May 11, 2015 · 1 revision

Edit /etc/wpa_supplicant/wpa_supplicant.conf so it looks similar to this:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="Your SSID Here"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="YourPresharedKeyHere"
}

And edit /etc/network/interfaces

iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
address 10.0.0.1
netmask 255.255.0.0
network 10.0.0.0
gateway 10.0.0.1

Now you only have to run (as sudo):

ifdown wlan0
ifup wlan0

Written with ♥, by Pablo Pizarro

Any doubt reach us at @netbeast_co (twitter) or staff [at] netbeast.co

Clone this wiki locally