设为首页 收藏本站
查看: 1363|回复: 0

[经验分享] redhat linux 中用锐捷客服端实现上网

[复制链接]

尚未签到

发表于 2018-5-13 11:26:31 | 显示全部楼层 |阅读模式
  redhat linux中用锐捷客服端实现上网
  开学了我们学校用的是锐捷的客服端连接外网,window下安装锐捷客服端实现上网很随意,但linux下却不是那么如鱼得水。我们校的很多同学都想用linux系统,但都因为安装锐捷客服端问题,不能上网,望而却步。
  如今linux系统越来越火,为了攻破以上问题,结合网络上和自身的知识,总结出下方法:
  1.刚开始一直用xrgsu-1.1.1.i386.tar.gz应该是锐捷官方提供的,搞了半天一直不成,错误结果是:
[root@localhost xrgsu1.1]# ./xrgsu -a
XRGSupplicant 1.0.1
RuiJie Network CopyRight 2004
Please input your user name:20087780338
Please input your password:
Use DHCP,1-Use,0-UnUse(Default: 0):
You have 3 Nic:
   0.    eth0  Desc: (null)
   1.    vmnet1  Desc: (null)
   2.    vmnet8  Desc: (null)
Please select which NIC will be used(0-2,Default:0)
Use default auth parameter,0-Use 1-UnUse(Default: 0):
Searching server...
Connecting server...
Authenticating...
??????ʹ?õĿͻ???????!
Authenticate FAIL!
xrgsu exit!
想必大家也出现过以上的结果吧,有可能是软件版本与服务端不兼容或系统内核没有编译好的原因。之所以在这里提出来是给大家一个参考。这种方法不行那我们就换一种方法。

  2.换一个客服端软件ruijieclient安装
  其功能:


  • 支持静态认证和3种DHCP认证
  • 支持2种服务器发现包
  • 支持客户端版本欺骗
  • 支持伪造IP
  • 支持智能重连
  • 支持后台daemon驻留,可以加入Linux启动脚本
  • 支持服务器消息读取和转码
  • 良好的embeded特性
  • 支持2种文件配置和命令行传参配置
  所需软件:ruijieclient-0.8.2.tar.bz2
  下载地址:http://code.google.com/p/ruijieclient/downloads/list
  下载后编译安装:
  tar xvf ruijieclient-0.8.2.tar.bz2
  cd ruijieclient-0.8.2
  ./configure && make && make install
  注意:以上步骤不能出错!
  然后:
  vim /etc/ruijie.conf
  #加入一下内容
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<ruijie.conf version=&quot;0.7.9&quot;>
<!--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>0</DHCPmode>
<!--Add if you don't want ruijieclient to ping the default gateway-->
<PingHost></PingHost>
</settings>
</ruijie.conf>
保存退出
  3.参数解释
Name= #用户名
Password= #密码
#This is settings
#Network Adapter Name 网卡设备名称
NIC=eth0
#0: Standard, 1: Private 服务器发现包类型 0 标准发现包 1 锐捷私有发现包
AuthenticationMode=1
#保活延时 单位秒
EchoInterval=25
#IntelligentReconnect: 0: Disable IntelligentReconnect, 1: Enable IntelligentReconnect
#智能重连
IntelligentReconnect=1
#AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient)
#自动连接
AutoConnect=0
#Fake Version for cheating server
#版本伪装
FakeVersion=3.99
#Fake IP for cheating server
#IP地址伪装
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)
#DHCP认证模式 0 关闭 1 认证前DHCP 2 认证后DHCP
DHCPmode=0
#Add if you don't want ruijieclient to ping the default gateway
#自动重连使用的测试主机地址
PingHost=

  4.启动ruijieclient
  第一次启动还要输入用户名,密码
  以后启动就不需要用户名,和密码了,验证成功结果如下:
[root@localhost ~]# ruijieclient

  >> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
@@ Password valid, SUCCESS:
## Server Message:
然后就可一通过firefox上网了,心动了吧,你也试一试吧!!!
  5.另一些问题
  a.有一些大学(如郑大),服务器端不支持客服端多网卡。解决方法一:自己可以上网搜一搜这个软件UltraEdit-32及其使用在这里不做介绍 法二:ifconfig ethx down 如果安装虚拟机了还要ifconfig vmnet1 down   ifconfig vmnet8 down   最好把lo 也down了
  b.如果装上后过两三分钟后又掉线了,且不能重连,解决方法:
  crontab -e
  #add
  */2 * * * * /usr/local/bin/ruijieclient
  其意思:每隔两分钟连接一次

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-459461-1-1.html 上篇帖子: 基于LAMP的博客--安装详细过程(在RedHat9.0下LAMP服务器配置)转 下篇帖子: 在redhat 5上面设置磁盘配额
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

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