LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2327|回复: 5

关于在FC5下xsupplicant还有wpa_supplicant 802.1x 认证上网的问题

[复制链接]
发表于 2006-4-29 00:00:32 | 显示全部楼层 |阅读模式
我们校园网是使用的华为的802.1x客户端认证上网的。我把/etc/xsupplicant.conf
改了下面三个地方:

identity = "我的帐号"

eap-md5 {
username = "我的帐号"
password = "我的密码"
}

然后在终端输入,运行的结果是这样:

[root@ChenJianpeng ~]# xsupplicant -f -c /etc/xsupplicant.conf -i eth0
!Couldn't get encryption capabilites!
No configuration information for network "(null)" found.  Using default.
Error (100) : Network is down  (cardif_getframe:859)

No identity!  Make sure you have an identity value in all of your network profiles!

请问大家这是怎么回事啊,这个xsupplicant究竟该怎么配置?多谢了
我的系统FC5,xsupplicant-1.2.4-1.fc5.i386.rpm
到现在我的FC5还不能上网呢,郁闷啊






还有wpa_supplicant,我装的是wpa_supplicant-gui-0.4.8-7.fc5.i386.rpm
运行wpa_gui的界面在附件里,大家可以看一下
然后下一步就不知道该怎么办了,EAP Method 不能选,SSID不知道是什么意思啊

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-4-29 16:02:34 | 显示全部楼层
仔细看看xsupplicant的man说明文档,会有很大帮助的。
看你的错误提示好象是封装格式不兼容吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-30 19:19:52 | 显示全部楼层
“封装格式不兼容”是什么意思啊

最近发现wpa_gui命令出来的配置wpa_supplicant的图形界面什么都不显示,也不能添加网络,原来是它需要先运行wpa_supplicant,但不知为什么,先运行wpa_supplicant再wpa_gui(运行结果见附件),从wpa_gui里对配置做的改动根本就无法保存,这又是怎么回事呢?

下面我就只用的wpa_supplicant
我把wpa_supplicant的配置文件改成这样了
/etc/wpa_supplicant/wpa_supplicant.conf


# IEEE 802.1X with dynamic WEP keys using EAP-PEAP/MSCHAPv2

ctrl_interface=/var/run/wpa_supplicant

network={
ssid="example 802.1x network"
key_mgmt=IEEE8021X
eap=MD5                          #PEAP
phase2="auth=MSCHAPV2"
identity="我的帐号"
password="我的密码"
ca_cert="/etc/cert/ca.pem"
}



运行结果:

[root@ChenJianpeng ~]# wpa_supplicant -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWMODE]: Invalid argument
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Operation not supported
ioctl[SIOCSIWSCAN]: Operation not supported
Failed to initiate AP scan.

剩下的就是一直重复下去,运行dhclient eth0 也不行
另外xsupplicant也还是搞不定,郁闷中…………

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-4-30 19:44:56 | 显示全部楼层
上你们学校论坛上Linux板块(如果有的话)看看别人是怎么认证的
或者就找学校中其他linuxer帮忙
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-30 23:37:56 | 显示全部楼层
终于可以上网了!
不过xsupplicant还有wpa_supplicant还是没有搞定,我用的另外一个专门针对华为的一个非官方客户端,大家是华为网络的可以试一下这个(需要libstdc++-libc6.2-2.so.3)

但是还是有一些问题的,我希望它在开机的时候自动运行,就在/etc/rc.d/rc.local里加上了一句
linux1x –u "我的帐号"/"我的密码" –n eth0 -d
但是这个linux1x好像是需要dhclient运行的,我是运行linux1x之前先输入dhclient eth 0,再Ctrl + z结束掉,再运行linux1x –u "我的帐号"/"我的密码" –n eth0 -d,这样就能上网,我晕

另外如果在“网络”里设置了开机时自动获取IP,再修改rc.local,固然可以自动上网,可是开机时系统启动的就太慢了,不知道这怎么解决啊

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-10-23 09:58:09 | 显示全部楼层
加我qq525522643,我告诉你
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表