感谢支持
我们一直在努力

彻底解决Fedora 13校园网锐捷上网问题

我在Fedora 13下用两个客户端进行校园网上网的尝试:


ruijieclient mentohust


一、利用ruijieclient进行上网,(本人为32位机)


1、在此处 http://code.google.com/p/ruijieclient/downloads/detail?name=ruijieclient-0.8.2-1.fc11.i686.rpm下载最新ruijieclient,双击安装;


2、查看ruijieclient的代码(http://code.google.com/p/ruijieclient/source/browse/trunk/packet/packetsender.c)第89行以后,发现ruijieclient识别的 libpcap包为libpcap.so.1,libpcap.so.0.x,x>=7;Fedora 13系统安装的libpcap包为libpcap.so.1.0.0,建有唯一软连接libpcap.so.1,是可以正常使用的,大家也可以尝试建立以上x>=7的libpcap包的软连接,也是可以正常使用的。


命令:ln -s /usr/lib/libpcap.1.0.0 /usr/lib/libpcap.so.0.x


其中x>=7,自行确定;


3、运行ruijieclient,配置自己的账号与密码有两种方式;


(1)、在root终端输入


gedit /etc/ruijie.conf


复制以下文字:


<?xml version=”1.0″ encoding=”UTF-8″?>
<ruijie.conf version=”0.7.9″>
<!–This is a sample configuration file of RuijieClient, change it appropriately according to your settings.–>
<account>
<Name>输入你的帐号</Name>
<Password>输入你的密码</Password>
</account>
<settings>
<!–Network Adapter Name–>
<NIC>eth0</NIC>
<!–0: Standard, 1: Private–>
<AuthenticationMode>0</AuthenticationMode>
<EchoInterval>25</EchoInterval>
<!–IntelligentReconnect: 0: Disable IntelligentReconnect, 1: Enable IntelligentReconnect –>
<IntelligentReconnect>1</IntelligentReconnect>
<!–AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient) –>
<AutoConnect>0</AutoConnect>
<!–Fake Version for cheating server–>
<FakeVersion>3.35</FakeVersion>
<!–Fake IP for cheating server–>
<FakeAddress></FakeAddress>
<!–DHCP mode 0: Disable, 1: Enable DHCP before authentication, 2: Enable DHCP after authentication 3: DHCP after DHCP authentication andre-authentication(You should use this if your net env is DHCP)–>
<DHCPmode>1</DHCPmode>
<!–Add if you don’t want ruijieclient to ping the default gateway–>
<PingHost></PingHost>
</settings>
</ruijie.conf>


保存退出;


(2)、在root终端输入 ruijieclient


按提示一步步配置以上的文件;


4、配置完毕,输入ruijieclient,既可以上网了;


ruijieclient 默认后台运行,如果想退出,在终端输入:ruijieclient -k

二、使用mentohust 锐捷上网


首先在win下下载相应软件;


1、下载mentohust-0.3.4-1.fc10.i386.rpm ;


2、下载 MentoHUSTTool.7z ,在WIN下解压安装,连上锐捷后,选取所连网卡,两个集成均选择,选择开始抓包;大概30秒后,退出,找到win下锐捷的安装目录下,复制 8021.exe,suConfig.dat,win32N55.dll三个文件备用;


3、参考 http://code.google.com/p/mentohust/source/browse/branches/new-style/packet/packetsender.c 发现mentohust识别的libpcap包为 libpcap.so.1,libpcap.so.0.x,x>=7;


4、进入Fedora 13,系统安装的libpcap包为libpcap.so.1.0.0,建有唯一软连接libpcap.so.1,是可以正常使用的,大家也可以尝试建立 x>=7的libpcap包的软连接,也是可以正常使用的。


命令:ln -s /usr/lib/libpcap.1.0.0 /usr/lib/libpcap.so.0.x


其中x>=7,自行确定;


5、root终端命令:mkdir /etc/mentohust


接着输入:nautilus


打开文件系统,找到etc/mentohust ,复制以上的三个文件至/etc /mentohust文件夹下;


6、运行mentohust,配置自己的账号与密码有两种方式;


(1)、root终端命令:


gedit /etc/mentohust.conf


依次填上要求的内容,注意使用的DHCP的脚本:/etc/mentohust;


目的为欺骗服务器使用的为win下的锐捷客户端的版本;


以下为/etc/mentohust.conf 的参考:


# MentoHUST for Linux By HustMoon Studio
#
# 配置文件名称必须是小写/etc/mentohust.conf,编码格式建议是UTF-8
# 配置文件中一行开头的空格和Tab会被忽略,其他的会视为参数一部分
# 配置文件中Section与Key不区分大小写,以#或;开头的行视为注释
# 同一个参数若在命令行参数和配置文件中均有设置,使用命令行参数
# 命令行中使用参数-h或-?可查看详细参数信息
# 命令行中使用参数-w可将配置更新到/etc/mentohust.conf


[MentoHUST]
;用户名,长度不超过64
Username=你的帐号
;密码,长度不超过64
Password= 你的密码
;网卡
Nic=eth0
;静态IP用户可以使用非本机IP
IP=
;掩码,无关紧要
Mask=
; 网关,无关紧要
Gateway=
;DNS服务器,无关紧要
DNS=
;Ping主机,用于掉线检测,0.0.0.0表示关闭该功能
PingHost=0.0.0.0
;每次发包超时时间(秒)
Timeout=8
;发送Echo包的间隔(秒)
EchoInterval=30
; 失败等待(秒)认证失败后等待RestartWait秒或者服务器请求后重启认证
RestartWait=15
;寻找服务器时的组播地址类型 0标准 1锐捷 2将MentoHUST用于赛尔认证
StartMode=0
;DHCP方式 0(不使用) 1(二次认证) 2(认证后) 3(认证前)
DhcpMode=3
;是否后台运行: 0(否) 1(是,关闭输出) 2(是,保留输出) 3(是,输出到文件/tmp/mentohust.log)


;自行选择


DaemonMode=1
;是否显示通知: 0(否) 1~20(是)
ShowNotify=5
;认证数据包,如果需要校验客户端或对版本有要求,就需要正确设置
DataFile=
;进行DHCP的脚本
DhcpScript=/etc/mentohust



(2)、在终端中输入mentohust,在终端中配置以上文件;


7、配置完毕,输入mentohust,(简便输法我就不说了),可以上网了;


若有疑问可输入mentohust -h


以上配置文件为后台运行,若想退出,终端输入mentohust -k

赞(0) 打赏
转载请注明出处:服务器评测 » 彻底解决Fedora 13校园网锐捷上网问题
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏