|
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 编辑 ] |
|