求助:锐捷上网,一分钟断网。

回复
wutong
帖子: 345
注册时间: 2007-10-22 16:54
送出感谢: 0
接收感谢: 7 次

求助:锐捷上网,一分钟断网。

#1

帖子 wutong » 2013-04-12 16:06

下载了学校的锐捷for linux 的上网认证包,解压下来里面有一个脚本。具体运行如下:

代码: 全选

yuan@yuan-Lenovo:~/opt$ ls 
README  rjsupplicant.sh  x64  x86
yuan@yuan-Lenovo:~/opt$ sudo ./rjsupplicant.sh --help
rjsupplicant - usage
	-a --auth	authenticate mode (with parameter[0/1], 0 means "wireles
                        s", 1 means "wired". default take last authmode or "wire
                        d" without this option)
	-d --dhcp	dhcp(with parameter[0/1], 0 means using system interface
                         config, 1 means get ip by dhcp server; take last config
                         without this option)
	-n --nic	nic (with parameter[eg. eth0, detail for "-l"], default 
                        take last nic or first nic without this option)
	-s --service	service (with parameter["servicename", detail for "-l"],
                         default take last service name or first service name wi
                        thout this option)
	-I --ssid	wireless ssid (with parameter["ssid", detail for "-l"], 
                        only for wirless auth mode. default take last ssid or fi
                        rst ssid without this option)
	-w --wlan	scan wireless network: without parameter, take "-n" opti
                        on to show wireless ssid by the specific nic
	-u --user	user name (with parameter[detail for "-l"], default take
                         last user name without this option)
	-p --password	password (with parameter, it can be seted after running 
                        if without password, default is null unless save passwor
                        d before)
	-S --save	save password (with parameter[0/1], 0 means not save, 1 
                        means save, default take last config without this option
                        )
	-q --quit	quit program(without parameter,take this option(-q) to q
                        uit the program)
	-l --list	list information: without parameter, only show config wi
                        th this option, sush as version, authmode, nic, service[
                        option], user, service list[opt], nic list. this command
                         default to list current authentication information)
	   --comments	run as daemon,run log in "/home/yuan/opt/x86/log/run.log   
                  ".
yuan@yuan-Lenovo:~/opt$ sudo ./rjsupplicant.sh -a 1 -d 1 -u yuanbx
sysctl: write error: Bad file descriptor
sysctl: write error: Bad file descriptor
sysctl: write error: Bad file descriptor
AuthMode    Wired Authentication
Adapter     eth1
UserName    yuanbx
service     internet
2013-04-12 16:02:35 Initializing.....
2013-04-12 16:02:36 Lookup the switch...
2013-04-12 16:02:36 Connecting radius server...
2013-04-12 16:02:36 Authenticating now...
2013-04-12 16:02:36 Geting IP Address...
2013-04-12 16:02:39 Lookup the switch...
2013-04-12 16:02:39 Connecting radius server...
2013-04-12 16:02:39 Authenticating now...
2013-04-12 16:02:39 Success
2013-04-12 16:02:39 Management Tips:
                    ***

                    

一分钟後

代码: 全选

2013-04-12 16:03:39 Client Prompt:
                    You install multi-NIC, please make all non-authentication ad
                    apters disable, and do authentication.
我用的系统是ubuntu 12.10.

而我用另一个系统 bodhi 2.3 (基于ubuntu 12.04) 就没有这样的问题。
wutong
帖子: 345
注册时间: 2007-10-22 16:54
送出感谢: 0
接收感谢: 7 次

Re: 求助:锐捷上网,一分钟断网。

#2

帖子 wutong » 2013-04-12 16:14

现在我切到bodhi 2.3 上来,把同样的操作过程介绍一下:

代码: 全选

baogu@kingston:/opt/rjsupplicant$ sudo ./rjsupplicant.sh -a 1 -d 1 -u yuanbx
[sudo] password for baogu: 
AuthMode    Wired Authentication
Adapter     eth1
UserName    yuanbx
service     internet
2013-04-12 16:10:33 Stoping system service(NetworkManager)
2013-04-12 16:10:33 Failed to stop system service(NetworkManager)
2013-04-12 16:10:33 Enabling adapters
2013-04-12 16:10:33 Initializing.....
2013-04-12 16:10:33 Lookup the switch...
2013-04-12 16:10:33 Connecting radius server...
2013-04-12 16:10:33 Authenticating now...
2013-04-12 16:10:33 Geting IP Address...
2013-04-12 16:10:36 Lookup the switch...
2013-04-12 16:10:36 Connecting radius server...
2013-04-12 16:10:36 Authenticating now...
2013-04-12 16:10:37 Success
2013-04-12 16:10:37 Management Tips:
wutong
帖子: 345
注册时间: 2007-10-22 16:54
送出感谢: 0
接收感谢: 7 次

Re: 求助:锐捷上网,一分钟断网。

#3

帖子 wutong » 2013-04-23 17:38

装了mentohust 以後就解决了这个问题。
wutong
帖子: 345
注册时间: 2007-10-22 16:54
送出感谢: 0
接收感谢: 7 次

Re: 求助:锐捷上网,一分钟断网。

#4

帖子 wutong » 2013-04-24 15:59

具体过程如下,以前都是network manager 直接工作,上网不愁,现在用了锐捷认证後,似乎没有用了。其实不然。昨天我以为解决了问题。今天再输入 sudo mentohust 却没有用。但当我再用锐捷客户端for linux 操作一下,它虽然一分钟断网,但是却被mentohust 捕捉住什么动态网址。
後來我在网上搜到一篇文章http://hi.baidu.com/orchard/item/741183 ... 0a6cc2f049明白了可以让network manager 先联上DHCP.

这个联上後,再做sudo mentohust 就能上网了。
附件
f.png
回复

回到 “校园网拨号”