--
參考資源
--
啟動 USB WiFi
1 |
# ip link set wlan0 up |
掃描 AP
1 |
# iw wlan0 scan |
安裝 wpa_supplicant 實現 WPA 認證
1 |
# apt install wpasupplicant |
掃描可連接 SSID
1 |
# iw wlan0 scan | grep SSID |
掃描 SSID 加上訊號強度
1 2 |
# iw wlan0 scan | grep 'SSID\|signal' # iw wlan0 scan | grep -E 'SSID|signal' |
產生連線文件,不加密碼 Enter 後輸入
1 |
# wpa_passphrase SSID Password > /tmp/wifi.cnf |
連接 AP
1 |
# wpa_supplicant -B -i wlan0 -c /tmp/wifi.cnf |
確認連接狀態
1 |
# iw wlan0 link |
取得 DHCP IP
1 |
# dhclient wlan0 |
--
484 total views, 1 views today