1.wep设置
# ifconfig wlan0 up
# iwconfig wlan0 essid TP-LINK key 1122334455
# dhclient wlan0
--wep在/etc/network/interfaces里面的设置
auto wlan0
iface wlan0 inet dhcp
wireless-essid dlink
wireless-key xxxxxxxxxx
2.wpa2-psk设置
# wpa_passphrase [ ssid ] [ passphrase ] >> /etc/wpa_supplicant/wpa_supplicant.conf
# ifconfig wlan0 up
# iwconfig wlan0 essid D-LINK
# wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
# dhclient wlan0
--关于wpa2-psk在/etc/network/interfaces里面的设置
auto wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-ssid D-LINK
wpa-psk xxxxxxxxxx
wpa-psk 编码在运行wpa_passphrase 后,可以在wpa_supplicant.conf里面查到。/etc/network/interfaces设置过后开机就自动上网,不用命令一行一行的敲,很方便。
阅读(1923) | 评论(0) | 转发(0) |