[已解决]32位Ubuntu8.0.4下校园网华为H3C验证完美解决方案

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
poemcoder
帖子: 4
注册时间: 2007-07-01 14:16

[已解决]32位Ubuntu8.0.4下校园网华为H3C验证完美解决方案

#1

帖子 poemcoder » 2008-04-27 12:37

下面的方法对解决Ubuntu(32位)下校园网上网(华为H3C 802 绑定网卡,需要输入用户名和密码)很有帮助,
本人已经在32位的Intel、AMD下亲测过,如有朋友不成功的话,请认证检查原因,
顺便说下,本人在AMD 64位的机子上没弄成功,就是那个libstdc++_2.96-111_i386.deb依赖包装不上。


首先安装libstdc++_2.96-111_i386.deb,双击即可

下载客户端h3c802.1xClient.tar.gz,解压到某一目录,假定是h3c,请阅读一下里面Readme,这里不再赘述里面的内容。

cd到h3c目录,里面有三个文件需要可执行权限,分别是linux1x、pre.ps、renew.ps,没有的话请给它们加上
代码:

代码: 全选

$ sudo chmod a+x linux1x pre.ps renew.ps 

执行里面的pre.ps,(把软件安装到系统中去,一般是装到/usr/local/bin )
代码:

代码: 全选

$ sudo ./pre.ps 

把上网方式改成dhcp,我建议你在图形环境下配置,也可以直接修改sudo gedit /etc/network/interfaces文件,把里面带有eth0的部分改成
代码:

代码: 全选

 iface eth0 inet dhcp 
      auto eth0 
第一行是把eth0改成dhcp方式,第二行是自动激活eth0,eth0代表第一块以太网网卡,可能需要重新启动网络
代码:

代码: 全选

$ sudo /etc/init.d/networking restart 

root@trubuntu:~/client#

代码: 全选

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.....................:N
Refresh IP address after connecting...............:Y
Save message and package to log...................:N
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): ##询问连接后是否更新IP
y

Save message and package to log?(Y/N): ##询问是否保存日志
y

The default save directory is '/var/log/h3c-linux1x/', do you want to change it?(Y/N):
n

Configuration has finished, do you want to save it?(Y/N) ##询问是否保存配置文件
y

Save configuration sucessfully! ##配置成功

root@trubuntu:~/client#

代码: 全选

sudo linux1x -d
Please enter your user name (less than 128 characters):xxxxxx ##输入你的帐户名
Please enter your password (less than 64 characters): ##输入帐户密码
start 802.1X authentication
device check
server check
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:yy:4c:zz:cb:xx
Sending on LPF/eth0/00:yy:4c:zz:cb:xx
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 172.17.138.1
bound to 172.17.138.xx -- renewal in 38286 seconds.
pass authentication
proxy check off
multi-network-card off
http check off
...............
联网成功,密码会被自动保存,下次你再上网,只需要输入

代码: 全选

sudo linux1x -d
即可。
Enjoy yourselves![/b]
附件
Ubuntu下校园网华为H3C验证完美解决方案.tar.gz
(467.23 KiB) 已下载 503 次
上次由 poemcoder 在 2008-04-28 16:10,总共编辑 3 次。
oraclecd
帖子: 13
注册时间: 2008-04-20 15:29

#2

帖子 oraclecd » 2008-04-27 16:10

我们公司是H3C+趋势杀毒 验证的 杀毒怎么配阿 ?
poemcoder
帖子: 4
注册时间: 2007-07-01 14:16

#3

帖子 poemcoder » 2008-04-27 17:10

oraclecd 写了:我们公司是H3C+趋势杀毒 验证的 杀毒怎么配阿 ?
解决了上网问题,其他应该是比较好解决了
顺便问下,公司也有用类似校园网的验证吗?
头像
SecretZero
帖子: 1670
注册时间: 2007-08-30 5:39

#4

帖子 SecretZero » 2008-04-27 17:30

好文章~!

支持,

虽然我不是h3c验证用户。
深度,值得深入!
http://bbs.deepin.org/?u=348684

最新的综艺魔法相册
http://www.77studio.net/?fromuid=344
lingol
帖子: 39
注册时间: 2007-07-24 20:40
联系:

#5

帖子 lingol » 2008-04-28 8:54

切!64位的未解决算什么“完美”……
poemcoder
帖子: 4
注册时间: 2007-07-01 14:16

#6

帖子 poemcoder » 2008-04-28 16:08

lingol 写了:切!64位的未解决算什么“完美”……
接受你的意见,已经在主题中注明32位机子呢,呵呵
csugenius
帖子: 7
注册时间: 2008-05-02 21:05

#7

帖子 csugenius » 2008-05-03 10:08

指出一点不同的地方让大家参考
如果校园网是 : 华为H3C 802 绑定网卡,绑定IP地址,需要输入用户名和密码

则在系统-系统管理-网络 里配置为 :静态IP地址,并设置你的网络参数

如果还不能上网 出现 什么 E324(或 Exxx)的错误,安下面修改
Refresh your IP address after connecting? (Y/N): ##询问连接后是否更新IP
选择 为 N
zt5810582
帖子: 9
注册时间: 2008-04-29 10:47

#8

帖子 zt5810582 » 2008-05-04 9:52

我的还是不能上!提示是
start 802.1X authentication
connection overtime, type: 5
start 802.1X authentication
connection overtime, type: 5
start 802.1X authentication
connection overtime, type: 3
exit for overtime
veushid
帖子: 100
注册时间: 2007-12-25 13:13

#9

帖子 veushid » 2008-06-13 11:58

我的也不能上,显示E***错误,failed,怎么弄呢?我的是静态IP的,那个Reflash也选择N了
aitianzhehao
帖子: 1
注册时间: 2008-09-07 16:17

#10

帖子 aitianzhehao » 2008-09-07 16:19

zt5810582 写了:我的还是不能上!提示是
start 802.1X authentication
connection overtime, type: 5
start 802.1X authentication
connection overtime, type: 5
start 802.1X authentication
connection overtime, type: 3
exit for overtime



我也遇到相同的情况 学校固定IP 怎么解决啊,急死人了。。。。

大侠救命啊。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
回复