搞定华为校园网H3C 802.1认证上网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
Judson
帖子: 257
注册时间: 2008-06-16 11:32
来自: 四川

搞定华为校园网H3C 802.1认证上网

#1

帖子 Judson » 2009-05-26 22:48

近期在网上看见很多同学(通过校园802.1认证网上网的同学)都遇到一个问题哈。就是怎么安装和设置802.1程序,下面这些也是我原来一开始接触linux的时候找到的资料,在结合自己的经历写成了一下的A,B,C步骤,如果你是小菜的话,建议从A->B->C的顺序下去就ok了(当然,首先要确定你的有线网卡没有罢工)。

注意:所有的操作均在系统终端下!!!这以前的准备工作e.g.准备802.1认证程序阿都不再说了。
途中会有:[sudo] password for judson: 字样,请输入你的开机密码在敲回车即可(注意:这里你输入的东西是不会显示的,不要感到奇怪哈)

A:设置静态IP

设置静态ip的方法如下:
(下面的ip和其他的数据为你自己的哈,不要照搬)
(1)编辑 /etc/network/interfaces (具体怎么编辑,推荐: sudo gedit /etc/network/interfaces)
将里面的内容换成:

auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1


如果你们学校是将ip和MAC地址捆绑,而你有想在另外的机子上实现上网的话可以加上:
hwaddress ether 0019b9826ddd (这个是将你现在真实的MAC地址修改成 ip和MAC捆绑的那个MAC地址,我现在就是这么干的哦,呵呵)
然后保存,关闭编辑器就ok。

(2)编辑 /etc/resolv.conf,设置dns (具体怎么编辑,推荐:sudo gedit /etc/resolv.conf)
将里面的内容换成:
nameserver 202.115.176.122

然后保存,关闭编辑器就ok。
(3)执行下面两个命令,启用新设置
$sudo ifconfig eth0 down
$sudo ifconfig eth0 up

B:设置连接(此步为成败之关键)

cd /usr/lib
sudo ln -s libstdc++.so.6.0.10 libstdc++-libc6.2-2.so.3
(到目前ubuntu 9.04为止都是libstdc++.so.6.0.10)
(ubuntu 9.10为libstdc++.so.6.0.13:
所以如果你是9.10系统你得运行: sudo ln -s libstdc++.so.6.0.13 libstdc++-libc6.2-2.so.3 )


C:设置802.1认证程序,你需要进入h3c802.1xClient文件夹
(例如:我的是:
judson@judson-laptop:~/Desktop$ ls
h3c802.1xClient
judson@judson-laptop:~/Desktop$ cd h3c802.1xClient
judson@judson-laptop:~/Desktop/h3c802.1xClient$ )
judson@judson-laptop:~/Desktop/h3c802.1xClient$ sudo /pre.ps
configuration directory exist
log directory exist
Refresh IP script is READY.
Authencation file is READY.
pre operation finished successfully
judson@judson-laptop:~/Desktop/h3c802.1xClient$  sudo linux1x -c
configure 802.1X network connection argumente
Current configuration is:

The way to initialize 802.1X authentication.......:multicast
Send all packets by multicast.....................:Y
Refresh IP address after connecting...............:Y
Save message and package to log...................:Y
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):
n    
Configuration has finished, do you want to save it?(Y/N)
y
Save configuration sucessfully!
judson@judson-laptop:~$sudo  linux1x -d 
[sudo] password for judson:
Please enter your user name (less than 128 characters):********
Please enter your password (less than 64 characters):
Please choose a network adapter:
1. eth0
2. ra0
Enter the number of your choice (1-2[1]): 1
(也许你没有上面4行,如果有的话:你选择eth0前面的序号即可)
start 802.1X authentication
device check
server check
pass authentication
judson@judson-laptop:~$ 



OK,大功告成。如果你有什么疑问的话(注意:不要问我为什么要这样做,因为我和你一样。),可以联系我:
email:Judson.sicau@gmail.com

(想当初自己在红旗5下安装802.1的时候... ...呵呵,so很感谢那些在网上和qq群里对我有帮助和没有帮助的帖子和那些人,thank you so much,也希望正在安装的你顺利成功)

最后给大家附带一个802.1的认证程序哈,是在四川农业大学网络中心的网站 nic.sicau.edu.cn 下载的(据说华为官方没有提供这个程序,so,在这里还是要对编译这个程序的无名英雄和四川农业大学网络中心搜集这个程序的工作人员表示感谢)
H3C 8021XClient CH V220_0210-Linux.tar.gz
顺便给大家附带个802.1的包哈,你下载到你的机子上,右键解压就ok了
(317.63 KiB) 已下载 2584 次
[/color]

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

我在网上找了一下,wiki上面有哈。希望大家看看。
http://wiki.ubuntu.org.cn/南京工程学院802.1X客户端
谢谢!!!

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

这个地址上面有不同的客户端哈,你可以试试,祝你成功。。。谢谢:校园网802.1X客户端开发小组
http://groups.google.com/group/njit8021xclient?hl=zh-CN
附件
njit8021xclient.zip
q友: ┍ Jル. 说这个能连接,我没试过,如果你用上面的方法连接不上的话,可以试试。 谢谢: ┍ Jル.
(135.52 KiB) 已下载 4404 次
上次由 Judson 在 2009-10-30 14:27,总共编辑 11 次。
头像
wowoto
帖子: 3050
注册时间: 2009-04-11 12:17
系统: windows7

Re: 搞定校园网802.1认证上网

#2

帖子 wowoto » 2009-05-27 0:13

这个什么校园网的?都这样子整还不死人...
wowoto>ubuntu8.04>ubuntu9.04>Archlinux>FreeBSD8.0>Archlinux & end here.
Judson
帖子: 257
注册时间: 2008-06-16 11:32
来自: 四川

Re: 搞定华为校园网802.1认证上网

#3

帖子 Judson » 2009-05-27 0:18

?a 不是吧
头像
Emie_Yu
帖子: 404
注册时间: 2007-09-20 11:49
来自: Wuhan,Mars
联系:

Re: 搞定华为校园网802.1认证上网

#4

帖子 Emie_Yu » 2009-05-27 1:04

比我们学校麻烦多了
back to Ubuntu + Opera + Chrome
Blogbus : It's Flying!Welcome!!!
Twitter : just say whatever whenever you want
Wakoopa : discover new softs & games
Last.fm : share your tastes & find new songs
wfhwfh
帖子: 12
注册时间: 2009-01-01 4:25

Re: 搞定华为校园网802.1认证上网

#5

帖子 wfhwfh » 2009-05-27 1:43

很老的H3C了,我們早就升INOD了
Judson
帖子: 257
注册时间: 2008-06-16 11:32
来自: 四川

Re: 搞定华为校园网802.1认证上网

#6

帖子 Judson » 2009-05-27 9:57

没办法哦,我们学校还是到仍然还是h3c802.1哦
yangqibing88
帖子: 21
注册时间: 2009-04-10 13:30

Re: 搞定华为校园网H3C 802.1认证上网

#7

帖子 yangqibing88 » 2009-06-13 14:27

好像不能设定静态IP和DNS吧~~
我们的都是它自动分配的~~设定后是无法上网的@!~~
头像
sxdhaoren
帖子: 852
注册时间: 2008-10-01 0:20
系统: ubuntu kylin16.04.3

Re: 搞定华为校园网H3C 802.1认证上网

#8

帖子 sxdhaoren » 2009-06-24 13:17

文字版的,又多了一种选择
自由软件爱好者
头像
小普林斯
帖子: 707
注册时间: 2009-04-14 13:18

Re: 搞定华为校园网H3C 802.1认证上网

#9

帖子 小普林斯 » 2009-06-24 14:30

:em09 校园网客户端果然是一大障碍啊!
头像
临水的季节
帖子: 446
注册时间: 2009-03-21 2:22

Re: 搞定华为校园网H3C 802.1认证上网

#10

帖子 临水的季节 » 2009-06-24 15:25

802.1X Supplicant for Linux: Version 2.20-0210
Copyright (C)2004 Huawei-3Com Technologies Co.,Ltd.
是华为官方写的吧
人之所以痛苦,那是因为你还不够强大
small009
帖子: 12
注册时间: 2009-03-24 13:34

Re: 搞定华为校园网H3C 802.1认证上网

#11

帖子 small009 » 2009-06-24 17:04

不是很清楚 反正我以前就是那样设置的 但是我90S就掉线 :em05
Judson
帖子: 257
注册时间: 2008-06-16 11:32
来自: 四川

Re: 搞定华为校园网H3C 802.1认证上网

#12

帖子 Judson » 2009-10-21 23:22

small009 写了:不是很清楚 反正我以前就是那样设置的 但是我90S就掉线 :em05
我没有出现掉线的情况哈。
zxcdsaz
帖子: 87
注册时间: 2007-08-02 18:21

Re: 搞定华为校园网H3C 802.1认证上网

#13

帖子 zxcdsaz » 2009-10-23 23:03

我这边是系统动态分配IP,该怎么设置?
Judson
帖子: 257
注册时间: 2008-06-16 11:32
来自: 四川

Re: 搞定华为校园网H3C 802.1认证上网

#14

帖子 Judson » 2009-10-23 23:18

zxcdsaz 写了:我这边是系统动态分配IP,该怎么设置?

代码: 全选

Refresh your IP address after connecting? (Y/N): 
y 
试试拉。
blue-mark
帖子: 20
注册时间: 2009-10-26 18:47

Re: 搞定华为校园网H3C 802.1认证上网

#15

帖子 blue-mark » 2009-10-26 19:05

郁闷的很,本来是F的系统,可是就这个客户端的依赖资源找不到,还是用U的人多,资源也好找,呵呵!
回复