无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 6943|回复: 11
打印 上一主题 下一主题

奇怪的网络唤醒问题 - wol

[复制链接]
跳转到指定楼层
1#
发表于 2012-12-19 11:52:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近xpe成功后,想测试wol功能。
结果发现总有些问题。


测试wake on lan 唤醒功能 是在局域网同一IP段测试的。

————————---------------------------
刚关机shutdown才可以唤醒。如果关机时间长了,就无法唤醒


查询了一下资料 好像是说是需要arp绑定 ,我绑定了也是同样
不起作用。

有谁知道arp 绑定的命令查询的命令吗???? ssh 或者telnet

好像是一个arplist????

我ssh进dd-wrt路由后,arplist后没有任何返回值。

谁能指点一下?

谢谢
推荐
发表于 2012-12-21 07:18:29 | 只看该作者
ssh进dd-wrt路由后,用以下命令即可:
/usr/sbin/wol -v 192.168.0.255 -p 9 xx:xx:xx:xx:xx:xx
上面的子网掩码地址和mac地址换成你自己的。
只要路由器支持DD-WRT,我用iphone手机或电脑的ssh程序都成功唤醒过电脑。
回复

使用道具 举报

2#
发表于 2012-12-20 13:58:57 | 只看该作者
先绑定一下看看:
arp -s 192.168.1.3 84-2b-2b-6f-15-48
另wake on lan使用mac地址,不要使用ip

我在家常使用远程开机,没发现问题。

[ 本帖最后由 zhaohj 于 2012-12-20 14:00 编辑 ]
回复

使用道具 举报

4#
 楼主| 发表于 2013-1-1 15:05:33 | 只看该作者
其实

刚关机shutdown才可以唤醒。如果关机时间长了,就无法唤醒

这才是关键

点评

www.rrkds.com/shenghuo/xiaobabadianshiju/ 小爸爸电视剧  发表于 2014-8-19 21:27
回复

使用道具 举报

5#
发表于 2013-1-4 16:33:09 | 只看该作者
有人需要专门的唤醒功能。以往我总是将网络唤醒关闭。
回复

使用道具 举报

6#
发表于 2013-1-5 15:27:26 | 只看该作者
确实是这样子的,我也不知为什么..
我自己测试都是一样的,设好之后,都可以用,但是只要一拨电源.过一会再插上去,就无法网络开机了,手动开启之后关机,又行了.
还有笔记本电脑,把电源拨掉只用电池,也无法唤醒..

无论用什么方法都没有办法开机,区别就是不能开机的时候,看网卡的指示灯是不会亮的.
如果是亮着的就可以.

这么来说,网络开机功能并不是很实用.
回复

使用道具 举报

7#
 楼主| 发表于 2013-1-6 14:13:34 | 只看该作者
  1. 这么来说,网络开机功能并不是很实用.
复制代码

应该是某些东西我们忽略了。否则无法过一段时间无法远程开机
wol起什么作用呢。



我专门google过、
据说是电脑关机后
路由里面有个什么cache的。将这设备删除了。
当woL的时候,信号就不发送到这个地址了。


而刚关机这个设备还没从arplist里删除。
所以要做的永远不动态从cache里的删除这个设备
好像是叫arp绑定。

可能解释的有点出入。不过大致是那个意思。
上次找到过这个问题的外文自己忘记记录地址了。
只记得大概意思而已。那个老外手动ssh进路由绑定的

结果是第二天早上wol成功了。

[ 本帖最后由 buypro 于 2013-1-6 14:28 编辑 ]
回复

使用道具 举报

8#
 楼主| 发表于 2013-1-6 14:35:28 | 只看该作者
找到那文章了
http://networking-forum.com/viewtopic.php?f=42&p=117722

Hi!

I have a Wake on lan problem that I cannot figure out, so I hope some of you can help me. The setup is as follows:

DSL router: Thomson ST546, dynamic IP from ISP, but running dyndns.org. I have configured the router to forward port 7 to 10.0.0.1 (Both UDP and TCP).

Computer: Running Windows 7, professional edition, static IP on lan: 10.0.0.1
Motherboard on computer is an ASUS P5B. Cannot remember BIOS version, think I updated it last year. I have wake on PCI and PCI-E enabled in BIOS.

PSU brand is Corsair. I use the network adapter on the motherboard.

iPhone 3GS connected through WiFi or 3G running iWOL app

Now, the WOL works beatifully right after I shut down computer (S5). But for some reason, if I let it stay shut down over night (6-8 hours), the WOL doesn't work in the morning. If I manually start the computer, and then shut down again, the WOL works once more. When I try to send the magic packet in the morning I get this in my router log:

FIREWALL rule: Protocoll: UDP Src ip: XX.X.X.XXX Src port 49156 Dst ip: 10.0.0.1 Dst port: 7 Chain: forward_host_service Rule Id: 4 Action accept

I don't know what this acctually means, but the computer doesn't wake up. It seems to me that there is some sort of internal time-out that makes the network adapter unable to act on reception of the magic packet after some time. But this is just my speculation. The problem seems very concistent too, so I don't think its just coincidence. Can anyone help me?
                                                                                               

                                                        Last edited by Petter on Wed Jul 21, 2010 1:43 am, edited 3 times in total.                                               


Ok, time for a little update. It has been a while since I first had this problem, and I had given it all up. I recently visited a friend and told him about the WOL. He was interested in having his iMac woken up over internet. So I set that up for him. The weird thing that happened to me also happened to him, only this time the WOL stopped working in a matter of 1 hour or so. I noticed that we had the same router brand (SpeedTouch), allthough he had a wi-fi router and I don't.

So I started looking into it again. This time I found that something called "ARP cache list" might have something to do with the problem. I don't understand the full concept, but it looks like this is a list of all devices connected to the router. Whenever the router looses contact with a device it deletes it from the list after some time. This way the magic packet won't be routed to the intended computer some time after computer shutdown.

What I have done now is the following:

1) Opened telnet on a different computer connected to the same router. My primary computer was disconnected from the router at this point. A note on this: I guess that I could have used the primary computer by changing the ip-address to something other than 10.0.0.1 prior to telneting. I ran into the problem where the router updates the arp automatically before I got around to typing in the addarp-command. This way the entry stays tagged as dynamic, and I won't be able to change it to static. Changing the ip to let's say 10.0.0.2 would probably let me work on adding the 10.0.0.1 as static without the router messing it up.
2) "telnet 10.0.0.138" (My router)
3) Put in username/password
4) "ip arplist" (This gives me all the devices in the list, I saw that all devices had been tagged as DYNAMIC. Now I wanted to change it to STATIC)
5) "ip arpdelete intf=LocalNetwork ip 10.0.0.1 hwaddr=xx:xx:xx:xx:xx:xx" (where the x's are the mac adress of my computer)
6) "ip arpadd intf=LocalNetwork ip 10.0.0.1 hwaddr=xx:xx:xx:xx:xx:xx"
7) Now when I list the arplist using "ip arplist" my computer is tagged as STATIC.

Hopfully this will keep my router from loosing the address after computer shutdown. We will see tomorrow :-)


Last edited by Petter



This morning my computer woke after sending the magic packet over 3G using my iphone. The trick seems to have worked. I still need to verify some more, but it looks like the problem is solved

Edit 21. of july: Still working this morning.
Edit 25. of july: It keeps on working every single time, problem definitely solved!
                                       


Since my last post, I've had some router problems where I needed to reboot the router (power off, then on). In case some of you out there fixed your WOL problems using info in this thread, be aware that my router lost its arp settings after reboot. I had to do the whole process once again.

If anyone has the ability to write an executable script to make this process a "1-click" experience, or if anyone can point me in the direction of such a tutorial, I would be very happy.
                                       
on Tue Jul 20, 2010 2:38 am, edited 2 times in total.

[ 本帖最后由 buypro 于 2013-1-6 14:39 编辑 ]
回复

使用道具 举报

9#
发表于 2013-3-2 07:57:28 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

10#
发表于 2013-3-2 14:05:44 | 只看该作者
我的路由是Tomato DualWAN  版本 1.28.0541 MIPSR1 K26 USB 8M
已经绑过了,也开不了?
回复

使用道具 举报

11#
 楼主| 发表于 2014-11-15 16:39:45 | 只看该作者
不是开不了

是不知道怎么配置
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-6-15 03:32

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表