Got WPA2 working

1. Create file /etc/wpa_supplicant/wpa_supplicant.conf with the following information

1.1. If you have problems with connecting try to comment out the line "group=TKIP"

Code:
Select Code
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=2

network={
  ssid="YourSSID"
  scan_ssid=1
  proto=RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP
  group=TKIP
  psk="YourPSK"
}
2. execute following command

Code:
Select Code
sudo wpa_supplicant -i eth0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf
3. Get IP address after successful connect

Code:
Select Code
sudo dhclient eth0