2012年3月4日 星期日

WPA / WPA2

# wpa_passphrase SSID WPA_KEY > /etc/wpa_supplicant/WIFI.conf
# wpa_passphrase ABCD_ESSID abcdefg001 > /etc/wpa_supplicant/ABCD_ESSID.conf



# vi /etc/wpa_supplicant/WIFI.conf

network={
ssid="0x209"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk="studyarea"
}


# wpa_supplicant -i ath0 -c /etc/wpa_supplicant/ESSID.conf
    -B     Run daemon in the background.

# dhclient ath0



/etc/network/interfaces
iface ath0 inet dhcp
pre-up wpa-supplicant -Bw -Dwext -iath0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

沒有留言:

張貼留言