我们学校用的是港湾网络的801. 2x的网络认证,学校bbs里面有用xsupplicant的教程,可是我怎么也上不去,后来我用mystar,上是可以上,但是需要设置一下,而且因为学校网络老断,因此mystar断点比较多。
anyway,我把我的设置贴出来,给你看看,能不能对你有所帮助。
This is a sample configuration file of mystar.
#Change it appropriately according to your actual settings.
#The lines starting with a '# 'or a '\n' mean comments and are ignored.
上一部分我没有改动
#user name & password
#Note: the content between '=' and '\n' is treated as a part of
# your name and password. so don't put some "space characters" before and
# after your name and password.
name=xxxxxxx
password=xxxx
用户名和密码写入
#authentication mode, 0 means standard mode, 1 means star-private-mode
authenticationMode=0
这里默认是1,也就是star-private-mode,可是我发现好像不行,我改成了0
#which interface(NIC) to use ? usually it's eth0.
nic=eth0
这个部分我没有改
#echo interval, 4 seconds. usually between 1 and 100
#set it to 0 to DISABLE it
echoInterval=4
变动最大的是这个,不能改成0,但是我又不知道ech0 interval是什么意思?可能这是造成老断网的原因之一
#enable intelligent reconnect?
#Intelligent reconnecting means pinging your netgate every 2 seconds, and if
#pinging returns timeout, we will restart authentication.
# 1 means enable, and 0 means disable
intelligentReconnect=1
intelligentHost=10.64.9.1
dbginfolevel=0
这个部分是重连的,因为里面的意思是说ping netgate,所以我把intelligentHost改成了网关,10.64.9.1,
#wanting to show a fake ip record in myself.hust.edu.cn? this can help.
#but do NOT use this functionality to do illegal things.
#uncommont and modify the next line to use it.
#(Since [network information center] has bound ip & account,
#normally, we should comment the line below
#fakeAddress=123.45.67.89
这两部分我都没边
比如装在/soft下面,我只要在root身份下输入:
cd /soft
./mystar
就可以启动了,启动信息是:
>> Logouting...
>> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
@@ Password valid, authentication SUCCESS!!!
Keeping sending echo...
Timeout! (Count:1)
>> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
@@ Password valid, authentication SUCCESS!!!
Keeping sending echo...
Timeout! (Count:2)
>> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
@@ Password valid, authentication SUCCESS!!!
Keeping sending echo...
Timeout! (Count:3)
>> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
@@ Password valid, authentication SUCCESS!!!
Keeping sending echo...
Timeout! (Count:4)
>> Searching for server...
@@ Server found, requesting user name...
>> Sending user name...
@@ User name valid, requesting password...
>> Sending password...
>> Sending password...
>> Sending password...
@@ Authenticaton failed!!!
>> Logouting...
>> Searching for server...
>> Searching for server...
>> Searching for server...
Restarting authenticaton!
>> Searching for server...
>> Searching for server...
>> Searching for server...
Restarting authenticaton!
>> Searching for server...
>> Searching for server...
>> Searching for server...
Restarting authenticaton!
>> Searching for server...
>> Searching for server...
>> Searching for server...
Restarting authenticaton!
>> Searching for server...
>> Searching for server...
>> Searching for server...
Restarting authenticaton!
>> Searching for server...
>> Searching for server...
>> Searching for server...
Restarting authenticaton!
>> Searching for server...
当出现timeout的时候,我猜想就是ping不通,当Searching for server...的时候,就是不能上网,所以我很郁闷!希望大家能够改好。