新校区路由器, mentohust上不了网

82 views
Skip to first unread message

Victor Feng

unread,
Oct 20, 2012, 11:08:25 PM10/20/12
to xidian...@googlegroups.com
rt, 刚买的RG100A, 配置完mentohust, 能正常认证, 第一次连上了, 8.8.8.8能ping通但无法上网, 于是我在/etc/mentohust.conf(好像是这个)里改了一下dns, 然后从此就再也ping不通任何东西了, 网关也不行, 但每次还能正常认证...
这是个啥啊= .=求救

还有 子网掩码到底是255.255.255.255还是255.255.255.0??
snapshot8_bac.png

张鑫

unread,
Oct 20, 2012, 11:14:50 PM10/20/12
to xidian...@googlegroups.com
route -n 把你的链路贴出来

--
您收到此邮件是因为您订阅了“西电开源社区”邮件列表。
要向此邮件列表发帖,请发送电子邮件至 xidian...@googlegroups.com
要取消订阅,请发送电子邮件至 xidian_linux...@googlegroups.com
请通过 https://groups.google.com/group/xidian_linux?hl=zh-CN 访问此网上论坛。
通过 [ipv6 enabled] http://xdlinux.info/http://xdl.in/
[ipv4 only] http://linux.xidian.edu.cn/
[手机]:http://m.xdlinux.info/
访问西电开源社区。
 
 

Victor Feng

unread,
Oct 20, 2012, 11:21:26 PM10/20/12
to xidian...@googlegroups.com
root@DreamBox:/openwrtxd# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
222.25.159.0    0.0.0.0         255.255.255.0   U     0      0        0 br-wan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
0.0.0.0         222.25.159.254  0.0.0.0         UG    0      0        0 br-wan


2012/10/21 张鑫 <justz...@gmail.com>

letaotor

unread,
Oct 21, 2012, 12:06:32 AM10/21/12
to xidian...@googlegroups.com
你的interface不对吧,默认路由怎么在br-lan上,应该在你连校园网的那个接口上

Yours sincerely,

letaotor


Victor Feng

unread,
Oct 21, 2012, 3:27:56 AM10/21/12
to xidian...@googlegroups.com
额那这个要怎么改啊??

2012/10/21 letaotor <leta...@gmail.com>

letaotor

unread,
Oct 21, 2012, 3:33:51 AM10/21/12
to xidian...@googlegroups.com
cat /etc/config/network 贴下配置

Victor Feng

unread,
Oct 21, 2012, 4:32:22 AM10/21/12
to xidian...@googlegroups.com
我把路由器重置了。。然后换了法师最新的那个包, 结果现在找不到无线网卡的MAC了= 。= 见下面和附件

欢迎使用MentoHUST 版本: 0.3.1 西电修改版
Copyright (C) 2009-2010 HustMoon Studio
人到华中大,有甜亦有辣。明德厚学地,求是创新家。

>> 进入后台运行模式,使用参数-k可退出认证。
root@DreamBox:/openwrt# ** 用户名: 02091114
** 网卡: eth1.1
** 网关地址: 222.25.159.254
** 智能重连: 61.134.1.5
** 认证超时: 8秒
** 心跳间隔: 30秒
** 失败等待: 15秒
** 允许失败: 30次
** 组播地址: 锐捷
** DHCP方式: 不使用
!! 在网卡eth1.1上获取MAC失败!
>> 认证已退出。

2012/10/21 letaotor <leta...@gmail.com>
snapshot9.png

letaotor

unread,
Oct 21, 2012, 6:17:55 AM10/21/12
to xidian...@googlegroups.com
你eth1.1的mac为00:00:00:00:00:00,看到了没?你把mac设为你认证的mac

Victor Feng

unread,
Oct 21, 2012, 6:44:21 AM10/21/12
to xidian...@googlegroups.com
恩, 改过来了, 能认证成功了!
但是还是最初的问题... 网关和8.8.8.8都无法ping通

root@DreamBox:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
222.25.159.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1.1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
0.0.0.0         222.25.159.254  0.0.0.0         UG    0      0        0 eth1.1
root@DreamBox:~# cat /etc/config/network 

config 'switch' 'eth1'
option 'reset' '1'
option 'enable_vlan' '1'

config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '0'
option 'ports' '0 1 2 5*'

config 'switch_vlan'
option 'device' 'eth1'
option 'vlan' '1'
option 'ports' '3 5*'

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

config 'interface' 'lan'
option 'type' 'bridge'
option 'ifname' 'eth1.0'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
option 'nat' '1'

config 'interface' 'wan'
option 'ifname' 'eth1.1'
option 'proto' 'static'
option 'netmask' '255.255.255.0'

    option 'ipaddr' '222.25.159.15'



2012/10/21 letaotor <leta...@gmail.com>

letaotor

unread,
Oct 21, 2012, 7:15:23 AM10/21/12
to xidian...@googlegroups.com
路由表看起来是正确的,不过你好像wan中好像没有配置option gateway 和option dns,是不是没贴完整

Victor Feng

unread,
Oct 21, 2012, 7:21:28 AM10/21/12
to xidian...@googlegroups.com
贴全了, 好像是没有
那我是直接加上? 具体要加上哪些东西?

2012/10/21 letaotor <leta...@gmail.com>

letaotor

unread,
Oct 21, 2012, 7:24:24 AM10/21/12
to xidian...@googlegroups.com

Victor Feng

unread,
Oct 21, 2012, 7:33:25 AM10/21/12
to xidian...@googlegroups.com
加上了 那两个, 还是什么都ping不通
然后认证成功后"发送心跳包以保持在线.."后面多了两句
网关mac (一堆地址)
sh: arp: not found

这最后一句是怎么回事?

2012/10/21 letaotor <leta...@gmail.com>

letaotor

unread,
Oct 21, 2012, 7:39:15 AM10/21/12
to xidian...@googlegroups.com
没有找到arp命令,改了之后重启服务了吗?

Victor Feng

unread,
Oct 21, 2012, 7:52:59 AM10/21/12
to xidian...@googlegroups.com
把整个路由都重启了试下, 还是一样的提示
还是无法ping通 , 然后锐捷每两分钟提示掉线自动重连
给跪了

2012/10/21 letaotor <leta...@gmail.com>

Victor Feng

unread,
Oct 21, 2012, 7:53:33 AM10/21/12
to xidian...@googlegroups.com
关键是每次都能认证成功啊为啥就什么都ping不通呢> .<

2012/10/21 Victor Feng <emar...@gmail.com>

猫法师

unread,
Oct 23, 2012, 11:04:46 AM10/23/12
to xidian...@googlegroups.com
你用了我的脚本?可能是没有正确使用....ARP那个不是问题,我也会出,但是照常上网.

如果路由表正确,认证成功,但是在路由器上直接ping网关的不通的话,不会是网关写错了吧?
----------科技就是魔法 想象力就是生产力 -----------
mfs6174 猫法师
Blog  mfs6174.org
Twitter @mfs6174

Victor Feng

unread,
Oct 23, 2012, 11:13:59 AM10/23/12
to xidian...@googlegroups.com

不是啦,囧了。。。后来发现是调试过程中被封端口了,用windows 登录一样可以认证但是无法ping 通网关
拿给刘雨齐帮我整了一下,回来换个端口直接就能用了,谢谢雨齐和大家啦~
现在每天躺床上玩N7,除了ipv6不能共享,其它都完美了↖(^ω^)↗

Justin Wong

unread,
Oct 23, 2012, 11:15:46 AM10/23/12
to xidian...@googlegroups.com

猫法师

unread,
Oct 23, 2012, 11:19:45 AM10/23/12
to xidian...@googlegroups.com
ipv6共享也可以直接用我的脚本,https://github.com/mfs6174/OwrtXD README中有说明

Victor Feng

unread,
Oct 23, 2012, 11:21:34 AM10/23/12
to xidian...@googlegroups.com

好喜欢那个浮动的妹子~~

Victor Feng

unread,
Oct 23, 2012, 11:22:13 AM10/23/12
to xidian...@googlegroups.com

法师那个没看懂额

Reply all
Reply to author
Forward
0 new messages