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安装

**其功能:
**

  1. 支持静态认证和3种DHCP认证
  2. 支持2种服务器发现包
  3. 支持客户端版本欺骗
  4. 支持伪造IP
  5. 支持智能重连
  6. 支持后台daemon驻留,可以加入Linux启动脚本
  7. 支持服务器消息读取和转码
  8. 良好的embeded特性
  9. 支持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="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>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  

其意思:每隔两分钟连接一次

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

皕杰报表之UUID

​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为

2020年前端实用代码段,为你的工作保驾护航

有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )

mysql设置时区

mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0