How-To: Wireless Configuration in Linux

iwconfig and WPA can be tricky. Gotta configure wpa_supplicant and have it running in the background like a daemon.
Configure /etc/wpa_supplicant.conf to have the following lines:


ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
      
ssid=”yourSSID”
psk=”yourWPApassword”
priority=5

}


Now use iwconfig, run wpa_supplicant, start your connection:


$iwconfig ath0 essid YourSSID #set iwconfg to your ssid

$wpa_supplicant -iath0 -c/etc/wpa_supplicant.conf -B #start the wpa “daemon”

$dhcpcd -d ath0 #obtain IP address from DHCP server

Using wpa_supplicant sorta replaces the manually setting a key [iwconfig ath0 key YourPW] shown above.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License