ubuntu_linux_可以锐捷连接校园网!!
发表于 : 2012-04-15 8:11
ruijieclient的设置方法
现在就来介绍一下ruijieclient的设置方法:
首先,先去ruijieclient官方去下载一个客户端
地址:http://code.google.com/p/ruijieclient/downloads/list
新人的话建议下载ruijieclient_0.8.1svn129local-0_i386.deb deb安装包,这个安装起来没难度
==============================================
因为 32 位的 ubuntu 有 deb 包,64 位的个人在网上木有找到 deb 包
所以下载 64 位 rpm 安装包也可以的
只不过步骤多一点
终端里面运行:
sudo apt-get install alien //先安装 alien
sudo alien -d xxxxxx.rpm //生成deb包
==============================================
生成的 deb 包文件名可能和 rpm 包文件名不一样
安装: dpkg -i xxxxxx.deb
下载安装后还要设置帐号密码IP网关等信息:
1.先创建配置文件:sudo ruijieclient -g
2.修改配置文件:sudo gedit /etc/ruijie.conf
这时候会打开一个配置文件,再里面有很多参数,而这些参数并不是所有的都要修改,只需要修改一部分就可以了:
查看这里
<?xml version="1.0" encoding="UTF-8"?>
<ruijie.conf version="0.8.1svn129">
<!--This is a sample configuration file of RuijieClient, change it appropriately according to your settings.-->
<account>
<Name>username</Name> #这里填写的是你的用户名
<Password>password</Password> #这里是密码
</account>
<settings>
<!--Network Adapter Name-->
<NIC>eth0</NIC> #这里是网卡,一般你只有一块网卡的话就默认
<!--0: Standard, 1: Private-->
<AuthenticationMode>1</AuthenticationMode> #这个默认不用改
<EchoInterval>40</EchoInterval> #保活延迟选项,建议设置在40~50之间
<!--IntelligentReconnect: 0: Disable IntelligentReconnect, 1: Enable IntelligentReconnect -->
<IntelligentReconnect>1</IntelligentReconnect>
#保活与否,要不断线就选1
<!--AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient) -->
<AutoConnect>0</AutoConnect> #自动重连只有GUI界面的才能选1,不知道的话还是选0
<!--Fake Version for cheating server-->
<FakeVersion>3.33</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> #DHCP服务,要先知道你们的学校能不能支持,0是关,1是开,2是认证后获取DHCP ,我是默认的
<!--Add if you don't want ruijieclient to ping the default gateway-->
<PingHost>xxx.xxx.xxx.xxx</PingHost> #默认网关。
</ruijie.conf>
---------------------------------------------------------------------
3.配置IP地址:
sudo gedit(vi也行) /etc/network/interfaces
先清空配置文件,然后输入:
auto eth0 #这行照抄
iface eth0 inet static #这行也照抄
address xx.xx.xxx.xxx #你的IP
netmask 255.255.255.0 #子网掩码
gateway xxx.xx.xxx.xxx #默认网管
4.配置下你的DNS服务器
sudo gedit /etc/resolv.conf
内容:
# Generated by NetworkManager
nameserver xx.xx.xxx.x #你们学校的DNS服务器地址
======================================================================
所有文件修改后保存关闭。
然后可以在终端执行sudo ruijieclient命令认证上网了! (部分机器可能需要重启再执行才能上网)
现在就来介绍一下ruijieclient的设置方法:
首先,先去ruijieclient官方去下载一个客户端
地址:http://code.google.com/p/ruijieclient/downloads/list
新人的话建议下载ruijieclient_0.8.1svn129local-0_i386.deb deb安装包,这个安装起来没难度
==============================================
因为 32 位的 ubuntu 有 deb 包,64 位的个人在网上木有找到 deb 包
所以下载 64 位 rpm 安装包也可以的
只不过步骤多一点
终端里面运行:
sudo apt-get install alien //先安装 alien
sudo alien -d xxxxxx.rpm //生成deb包
==============================================
生成的 deb 包文件名可能和 rpm 包文件名不一样
安装: dpkg -i xxxxxx.deb
下载安装后还要设置帐号密码IP网关等信息:
1.先创建配置文件:sudo ruijieclient -g
2.修改配置文件:sudo gedit /etc/ruijie.conf
这时候会打开一个配置文件,再里面有很多参数,而这些参数并不是所有的都要修改,只需要修改一部分就可以了:
查看这里
<?xml version="1.0" encoding="UTF-8"?>
<ruijie.conf version="0.8.1svn129">
<!--This is a sample configuration file of RuijieClient, change it appropriately according to your settings.-->
<account>
<Name>username</Name> #这里填写的是你的用户名
<Password>password</Password> #这里是密码
</account>
<settings>
<!--Network Adapter Name-->
<NIC>eth0</NIC> #这里是网卡,一般你只有一块网卡的话就默认
<!--0: Standard, 1: Private-->
<AuthenticationMode>1</AuthenticationMode> #这个默认不用改
<EchoInterval>40</EchoInterval> #保活延迟选项,建议设置在40~50之间
<!--IntelligentReconnect: 0: Disable IntelligentReconnect, 1: Enable IntelligentReconnect -->
<IntelligentReconnect>1</IntelligentReconnect>
#保活与否,要不断线就选1
<!--AutoConnect: 0: Disable AutoConnect, 1: Enable AutoConnect (only available in gruijieclient) -->
<AutoConnect>0</AutoConnect> #自动重连只有GUI界面的才能选1,不知道的话还是选0
<!--Fake Version for cheating server-->
<FakeVersion>3.33</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> #DHCP服务,要先知道你们的学校能不能支持,0是关,1是开,2是认证后获取DHCP ,我是默认的
<!--Add if you don't want ruijieclient to ping the default gateway-->
<PingHost>xxx.xxx.xxx.xxx</PingHost> #默认网关。
</ruijie.conf>
---------------------------------------------------------------------
3.配置IP地址:
sudo gedit(vi也行) /etc/network/interfaces
先清空配置文件,然后输入:
auto eth0 #这行照抄
iface eth0 inet static #这行也照抄
address xx.xx.xxx.xxx #你的IP
netmask 255.255.255.0 #子网掩码
gateway xxx.xx.xxx.xxx #默认网管
4.配置下你的DNS服务器
sudo gedit /etc/resolv.conf
内容:
# Generated by NetworkManager
nameserver xx.xx.xxx.x #你们学校的DNS服务器地址
======================================================================
所有文件修改后保存关闭。
然后可以在终端执行sudo ruijieclient命令认证上网了! (部分机器可能需要重启再执行才能上网)