Moxa UC-8410A-T-LX [37/86] Badding wpa wpa2 settings in a configuration file

Moxa UC-8410A-LX [37/86] Badding wpa wpa2 settings in a configuration file
UC-8410A Series Linux Software Advanced Configuration of Peripherals
3-17
Adding WPA/WPA2 Settings in a Configuration File
The relevant commands you can enter to add WPA/WPA2 configuration information in the
/etc/wpa_supplicant.conf file are shown below.
root@Moxa:/home# wpa_cli -i wlan0 add_network
1
root@Moxa:/home# wpa_cli
-i wlan0 set_network 1 ssid '"MOXA-AP"'
OK
root@Moxa:/home# wpa_cli
-i wlan0 set_network 1 proto 'WPA WPA2 RSN'
OK
root@Moxa:/home# wpa_
cli -i wlan0 set_network 1 key_mgmt 'WPA-PSK'
OK
root@Moxa:/home# wpa_cli
-i wlan0 set_network 1 pairwise 'TKIP CCMP'
OK
root@Moxa:/home# wpa_cli
-i wlan0 set_network 1 group 'TKIP CCMP'
OK
root@Moxa:/home# wpa_cli
-i wlan0 set_network 1 psk '"01234567890"'
'SET_NETWORK 1 psk "01234567890"' command timed out.
root@Moxa:/home# wpa_cli
-i wlan0 enable_network 1
OK
root@Moxa:/home# wpa_cli
-iwlan0 select_network 1
OK
root@Moxa:/home# wpa_cli
-i wlan0 save_config
OK
The following table lists the wpa_cli commands:
Command Function
wpa_cli -i wlan0 status Get current WEP/WPA/EAPOL/EAP status.
wpa_cli -i wlan0 help Show this usage help.
wpa_cli -i wlan0 terminate Terminate wpa_supplicant.
wpa_cli -i wlan0 interface Show interfaces or select an interface.
wpa_cli -i wlan0 list_networks List configured networks in wpa_supplicant.conf.
wpa_cli -i wlan0 select_network Set network variables.
Network id can be received from the LIST_NETWORKS command output.
This command uses the same variables and data formats as the
configuration file.
wpa_cli -i wlan0 enable_network Enable a network.
Network id can be received from the LIST_NETWORKS command output.
wpa_cli -i wlan0 disable_network Disable a network.
Network id can be received from the LIST_NETWORKS command output.
Special network id “all” can be used to disable all networks.
wpa_cli -i wlan0 remove_network Remove a network.
Network id can be received from the LIST_NETWORKS command output.
Special network id “all” can be used to remove all networks.
wpa_cli -i wlan0 reconfigure Force wpa_supplicant to re-read its configuration file.
wpa_cli -i wlan0 save_config Save the current configuration.
Replace original /etc/wpa_supplicant.conf file.
wpa_cli -i wlan0 scan
wpa_cli -i wlan0 scan_results
Scan available networks.
Get scanning results.

Содержание

Скачать