linux下WIFI的AP搜索及连接方法
2014-01-10 16:02
465 查看
wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant.conf &
wpa_cli save_config
wpa_cli reconfigure
wpa_cli list_networks
wpa_cli status
wpa_cli remove_network 0
wpa_cli -ieth1 scan //搜索无线网
wpa_cli -ieth1 scan_results //显示搜索结果
wpa_cli -ieth1 add_network
例如:
wpa_cli -ieth1 add_network
wpa_cli -ieth1 set_network 1 ssid "TEST_IP"
wpa_cli -ieth1 set_network 1 key_mgmt NONE
wpa_cli -ieth1 set_network 1 wep_key0 "2223344"
wpa_cli -ieth1 set_network 1 wep_tx_keyidx 0
wpa_cli -ieth1 select_network 1
wpa_cli -ieth1 enable_network 1
wpa_cli -ieth1 quit
wpa_cli -ieth1 dhclient eth1
wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant.conf &
wpa_cli -ieth1
add_network (assume returns 1)
set_network 1 ssid "TEST_IP"
set_network 1 key_mgmt NONE
set_network 1 wep_key0 "123456" //“your ap passwork”(if usting ASCII, it need double quotation marks, if using hex, then don`t need the double quotation marks)
set_network 1 wep_tx_keyidx 0
select_network 1 (optional, remember, if you are connecting with another AP, you should select it to disable the another)
enable_network 1
quit
dhclient eth1
wpa_cli save_config
wpa_cli reconfigure
wpa_cli list_networks
wpa_cli status
wpa_cli remove_network 0
wpa_cli -ieth1 scan //搜索无线网
wpa_cli -ieth1 scan_results //显示搜索结果
wpa_cli -ieth1 add_network
例如:
wpa_cli -ieth1 add_network
wpa_cli -ieth1 set_network 1 ssid "TEST_IP"
wpa_cli -ieth1 set_network 1 key_mgmt NONE
wpa_cli -ieth1 set_network 1 wep_key0 "2223344"
wpa_cli -ieth1 set_network 1 wep_tx_keyidx 0
wpa_cli -ieth1 select_network 1
wpa_cli -ieth1 enable_network 1
wpa_cli -ieth1 quit
wpa_cli -ieth1 dhclient eth1
wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant.conf &
wpa_cli -ieth1
add_network (assume returns 1)
set_network 1 ssid "TEST_IP"
set_network 1 key_mgmt NONE
set_network 1 wep_key0 "123456" //“your ap passwork”(if usting ASCII, it need double quotation marks, if using hex, then don`t need the double quotation marks)
set_network 1 wep_tx_keyidx 0
select_network 1 (optional, remember, if you are connecting with another AP, you should select it to disable the another)
enable_network 1
quit
dhclient eth1
相关文章推荐
- linux下WIFI的AP搜索、连接方法
- linux下WIFI的AP搜索及连接方法
- Linux下wifi连接AP后自动获取IP地址。
- Linux 下命令行连接Wifi方法
- 在linux,arm上的屏幕搜索wifi并连接(qt,多选择,wifi按信号排列)转
- 在Linux环境命令行中实现Wifi 连接的方法步骤详解
- 贡献自己写的,在linux,arm上的屏幕搜索wifi并连接(qt,多选择,wifi按信号排列)
- 开发板linux连接wifi的方法(一)
- linux下wifi连接方法
- 开发板linux连接wifi的方法(二)
- Linux系统下中 在命令行中实现Wifi 连接的方法
- Linux 开发板4G转WiFi热点 手机连接热点上网(三 WiFi模块的移植及AP的建立)
- Ubuntu14.04 搜索不到WIFI或连接不上的解决方法。
- php程序无法使用localhost连接数据库解决方法(linux)
- Linux系统SSH连接自动断开问题的解决方法
- Ubuntu Linux系统在VMware虚拟机上连接无线网络方法
- Linux 无线网卡连接 WIFIWPA-PSK
- Linux Vsftpd 连接超时解决方法(被动模式)
- android wifi不能连接中文AP
- rk3288 ap6335 linux下的wifi 热点功能使用