Ubuntu下用华为h3c802.1x认证上网


首先下要用到的两个文件.h3c802.1xclient.tar.gz和libstdc++_2.96-111_i386.deb下载。

在帮客之家FTP里:

FTP地址:ftp://www.6688.cc/

用户名:www.bkjia.net

密码:www.6688.cc

在2010年LinuxIDC.com\12月\Ubuntu下用华为h3c802.1x认证上网\

具体下载方法见http://www.bkjia.net/thread-1186-1-1.html

下载完后就是安装了.先安装libstdc++ 双击libstdc++_2.96-111_i386.deb就可以完成安装.
接下来在终端里:
tar -vzxf h3c802.1xclient.tar.gz #解压h3c802.1xclient.tar.gz
cd h3c802.1xClient #里面有三个可执行文件linux1x、pre.ps、renew.ps
sudo chmod a+x linux1x pre.ps renew.ps #加上可执行权限
sudo ./pre.ps #执行里面的pre.ps
然后在:系统->系统管理->网络.->连接->属性配置好网络(使用静态IP).并在DNS里添加DNS服务器:
sudo /etc/init.d/networking restart #重启一下网络
接下来是配置认证客户端.
sudo linux1x -c
终端显示信息如下:
configure 802.1X network connection arguments
Current configuration is:

The way to initialize 802.1X authentication…….:multicast
Send all packets by multicast…………………:Y
Refresh IP address after connecting……………:N
Save message and package to log……………….:Y
The save directory is………………………..:/home/shine/h3c/
Continue to configure your network connection arguments?(Y/N)
y
There are two ways to initialize 802.1X authentication:
1. Trap by broadcast.
2. Trap by multicast.
Please choose the way to initialize the 802.1X authentication :
2
Send all packets by multicast? (Y/N):
y
Refresh your IP address after connecting? (Y/N):
n
Save message and package to log?(Y/N):
y
The default save directory is ‘/home/shine/h3c/’, do you want to change it?(Y/N):
n
Configuration has finished, do you want to save it?(Y/N)
y
Save configuration sucessfully!

在配置过程中自动更新IP要选N.否则出现如下乱码:
E2546: ̬IP ַ ʧ (静态IP地址绑定失败.出现乱码是没有配置好中文)
这时候可以试着执行一下linux1x,第一次执行需要输入用户名和密码,以后就不用了
sudo linux1x -d
start 802.1X authentication
device check
server check
pass authentication
这下就可以上网了!!!!!!!!!!!!
动态IP的请参考华为802.1x认证上网-5.18

相关内容