linux 安装 wpa_suppliant 进行无线上网
2011-12-14 16:23
381 查看
1. run wpa_supplicant first:
wpa_supplicant -i wlan0 -D wext -c /tmp/wpa_supplicant.cfg –B
2. run wpa_cli(cmd line tool) to connect to ssid:
a) scan: to scan the neighbor AP
b) scan_result: show the scan result
c) status: check out the current connection information
d) terminate: terminate the wpa_supplicant;
e) quit:
f) add_network: it will return a network id;
g) set_network: example, set_network 0 ssid “hztb”, set_network 0 key_mgmt NONE;
h) disable_network:
i) enable_network:
3. how to config wpa_supplicant.cfg
you can issue "echo \"ctrl_interface=/var/run/wpa_supplicant\" > /tmp/wpa_supplicant.cfg" to create a wpa_supplicant.cfg
4. get ip by dhclint:
you can issue "dhclint wlan0" to get ip from dhcp server.
5. auth-mode:
MODE wpa_cli parameter
---------------------------------------------------------------------------------------------
WPA-PSK-TKIP: key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
WPA-PSK-AES: key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP
group=CCMP
--------------------------------------------------------------------------------------------
WPA2-PSK-TKIP: key_mgmt=WPA2-PSK
proto=WPA2
pairwise=TKIP
group=TKIP
WPA2-PSK-TKIP-AES: key_mgmt=WPA2-PSK
proto=WPA
pairwise=CCMP
TKIP group=TKIP
---------------------------------------------------------------------------------------------
then you can access to internet by ssid.
相关文章推荐
- Linux安装无线网卡驱动,实现Linux无线上网 推荐
- wpa_supplicant 移植及 linux 命令行模式配置无线上网
- Linux安装无线网卡驱动,实现Linux无线上网 转
- Linux怎么配置 WPA-PSK无线上网
- Linux下无线网卡的安装实现无线上网
- linux 无线上网(network manager+wpa_supplicant )
- Linux 学习笔记 (四)Ubuntu14.04 解决上网问题安装无线网卡驱动
- Linux安装无线网卡驱动,实现Linux无线上网 转
- Linux 学习笔记 (四)Ubuntu14.04 解决上网问题安装无线网卡驱动
- linux 无线上网(network manager+wpa_supplicant )
- 虚拟机安装linux系统的上网设置(有线网络和无线网络)
- 虚拟机安装linux系统的上网设置(有线网络和无线网络)
- Linux安装无线网卡驱动,实现Linux无线上网
- 虚拟机安装linux系统的上网设置(有线网络和无线网络)
- Linux下的gprs无线上网笔记整理
- Linux 安装Broadcom Linux hybrid 无线网卡驱
- Linux环境下无线网卡的安装
- windows下的vmware安装linux上网问题-已测试通过
- Linux 无线网卡连接 WIFIWPA-PSK
- CentOS 安装无线网卡驱动,配置无线上网