
有密码模式
>add_network
>set_network 0 ssid '666'
>set_network 0 psk 'your pre-shared key'
>enable_network 0
>quit
root@dpdk2-All-Series:~# dhclient wlan1
4.命令手册 Full command
Short command
Description
status
stat
displays the current connection status
disconnect
disc
prevents wpa_supplicant from connecting to any access point
quit
q
exits wpa_cli
terminate
term
kills wpa_supplicant
reconfigure
recon
reloads wpa_supplicant with the configuration file supplied (-cparameter)
scan
scan
scans for available access points (only scans it, doesn‘t displayanything)
scan_result
scan_r
displays the results of the last scan
list_networks
list_n
displays a list of configured networks and their status (active ornot, enabled or disabled)
select_network
select_n
select a network among those defined to initiate a connection (ieselect_network 0)
enable_network

enable_n
makes a configured network available for selection (ieenable_network 0)
disable_network
disable_n
makes a configured network unavailable for selection (iedisable_network 0)
remove_network
remove_n
removes a network and its configuration from the list (ieremove_network 0)
add_network
add_n
adds a new network to the list. Its id will be createdautomatically
set_network
set_n
shows a very short list of available options to configure a networkwhen supplied with no parameters.
See next section for a list of extremely useful parameters to beused with set_network and get_network.
get_network
get_n
displays the required parameter for the specified network. See nextsection for a list of parameters
save_config
save_c
saves the configuration
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-34129-1.html
如果他要耍赖
这次只好派大家伙来了