wpa_supplicant & iwconfig
###wpa_supplican
用wpa_passphrase生成最基本的wpa_supplicant配置文件:
wpa_passphrase TPLINK 12345678 |sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplication.conf的模板如下:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
network=
{
ssid="xxxx"
scan_ssid=1
psk=xxxxxxxxx37bca5cf24a345f514d319211822f568bba28f8f0b74c894e7644
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
连接命令:
wpa_supplicant -B -d -iwlan0 -c/etc/wpa_supplicant.conf
动态获取IP:
dhclient wlan0
###iwconfig
扫描AP节点:
iwlist wlan4 scanning
配置MYSSID:
iwconfig wlan0 essid “myssid”
加密码:
iwconfig wlan0 key s:xxxxx/xxxxxxxxxxxxx(40-bit为5个ASSIC字符,128-bit为13个ASSIC字符,以字符为密钥时,密钥之前需要加s:表示字符)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 DD'Notes!
评论