Moxa W321-LX [18/80] Http linux die net man 8 wpa_cli

Moxa W321-LX [18/80] Http linux die net man 8 wpa_cli
W321/341 Linux Getting Started
2-10
NOTE
Most of time, you need to get the IP from AP by using dhcpcd wlan0command after connecting
to AP
Enabling wpa_cli to interact with wpa_supplicant
wpa_cli is a text-based frontend program for interacting with wpa_supplicant. It is used to query current
status, change configuration, trigger events, and request interactive user input.
NOTE
wpa_supplicant must be executed before using wpa_cli command. Click on the following
links for more information on wpa_cli.
http://linux.die.net/man/8/wpa_cli
Scanning AP and checking results
Use the following command to scan local access points:
Use the following command to check the results:
Adding WEP setting into configuration file
Use the following commands to add WEP setting into /etc/Wireless/wpa_supplicant.conf.
root@Moxa:/home# wpa_cli -i wlan0 add_network
0
root@Moxa:/home#
wpa_cli -i wlan0 set_network 0 key_mgmt NONE
OK
root@Moxa:/home#
wpa_cli -i wlan0 set_network 0 ssid '"MOXA-AP-1"'
OK
root@Moxa:/home#
wpa_cli -i wlan0 set_network 0 bssid 50:67:F0:61:2D:7A
OK
root@Moxa:/home#
wpa_cli -i wlan0 set_network 0 wep_key0 AAEE431ED3FVV4FAEB923443
C4
OK
root@Moxa:/home#
wpa_cli -i wlan0 enable_network 0
OK
root@Moxa:/home#
wpa_cli -iwlan0 select_network 0
OK
root@Moxa:/home# wpa_cli -i wlan0 save_config
Adding WPA/WPA2 Settings into the Configuration File
Use the following commands to add WPA/WPA2 setting into /etc/Wireless/wpa_supplicant.conf.

Содержание

Похожие устройства

Скачать
Случайные обсуждения