RT,Ubuntu自带的网络管理期提供的EAP认证方式不够用,我做使用需要用到其它的认证方式,准备使用wpa_supplicant认证。
参照这篇文档ubuntu下wpa_supplicant使用:http://www.cnblogs.com/fand/archive/201 ... 21341.html,里面提到卸载 卸载Network Manager:
apt-get remove NetworkManager。
提示找不到该软件包,似乎它是一个服务?我在sysv-rc-conf中关闭该服务后,还是不能使用wpa_supplicant ,提示:ioctl错误,并且中止该服务后网卡也找不到了。请问我关闭该服务的思路是否正确,若正确,如何启用网卡?不正确该怎么做?请指教
Ubuntu11.10中怎么使用WPA_Supplicant?
-
- 论坛版主
- 帖子: 5371
- 注册时间: 2007-01-14 16:23
Re: Ubuntu11.10中怎么使用WPA_Supplicant?
这样,你先在synaptic 里面找找networkmanager,在里面卸载,命令卸载的话需要知道软件准确名字,可以用自动补全,至少大小写是区分的,管理网络的服务是network,网卡没有了?怎么没的?ifconfig -a 或者iwconfig 能看到无线网卡不?如果wlan0(假设你就一个无线网卡)的状态是down,那么ifconfig wlan0 up激活网卡,wpa_supplicant需要先安装,然后写配置文件,apt-get install wpa_supplicant,配置文件在/etc下面,叫什么忘了……好像是wpa_supplicant.conf
wpa_supplicant好像有个命令接口,不过我目前还没连接成功过……
wpa_supplicant好像有个命令接口,不过我目前还没连接成功过……
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
-
- 帖子: 7
- 注册时间: 2011-11-07 21:27
Re: Ubuntu11.10中怎么使用WPA_Supplicant?
谢谢,用ifconfig启动网卡后,认证就成功了onlylove 写了:这样,你先在synaptic 里面找找networkmanager,在里面卸载,命令卸载的话需要知道软件准确名字,可以用自动补全,至少大小写是区分的,管理网络的服务是network,网卡没有了?怎么没的?ifconfig -a 或者iwconfig 能看到无线网卡不?如果wlan0(假设你就一个无线网卡)的状态是down,那么ifconfig wlan0 up激活网卡,wpa_supplicant需要先安装,然后写配置文件,apt-get install wpa_supplicant,配置文件在/etc下面,叫什么忘了……好像是wpa_supplicant.conf
wpa_supplicant好像有个命令接口,不过我目前还没连接成功过……

synaptic只有networkManager(GNome),只是个界面程序,我用sysv-rc-conf关闭network-m服务后,ifconfig wlan1 up启用网卡,然后使用wpa-supplicant认证通过了,再用dhclient wlan1获取ip地址,能正常上网了。目前wpa-psk认证通过,明天启动服务器测下eap-ttls,实验又前进了一步。