2011/12/18

How to configure wireless networking with WPA/WPA2 on debian

Hi, Everyone.
Today, I'll Introduce you about configure wireless networking with WPA/WPA2 (Wi-fi Protected Access / Wi-fi Protected Access II). I'm try to explanation from the beginning of configure networking in this topic.

What does WPA/WPA2?
  • WPA/WPA2 are two security protocols and security certification programs developed by the Wi-Fi Alliance to secure wireless computer networks. The Alliance defined these in response to serious weaknesses researchers had found in the previous system, WEP (Wired Equivalent Privacy) 
I don't talking about the meaning more than. You can find the meaning from google or more search engine. It's the time to do it now.


You have to type the command as root.
 

Step 1. Install the wpasupplicant.

$: apt-get install wpasupplicant


Step 2. You have to ensure the wireless networking device is working.
$: lspci | grep -i wlan
OR
$: lspci | grep -i wireless
OR
$: lspci | grep -i wifi
OR
$: lspci -nn | grep Network

Example:
Figure 1. Output of "lspci -nn | grep -i Network"
Step 3. Configure wireless networking with WPA/WPA2

$: vi /etc/network/interface



Add new configure for wlan0 device (wlan0 = wi-fi device)
#######################
iface wlan0 inet dhcp
wpa-ssid ap_ssid_name
wpa-key-mgmt WPA-PSK
wpa-group TKIP CCMP
wpa-psk xxxxxxxx
#######################
Save and quit to terminal.


Step 4. Start the networking.

$: ifdown wlan0

$: ifup wlan0

And now, You have connected network with wpa/wpa2 succeed. You can use ping command for testing your connection.

Finally, This is topic use Debian linux for show you how. And I have tested this configure with my laptop (Lenovo Y410). I hope you all understand about my explanation in this topic. I apologize for my bad skill English language. GoodBye.