What's new

Wake on lan works at most 1 time

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Tuatini

Occasional Visitor
Hello,
I just upgraded to Asuswrt-merlin 380.65 but now when I'm trying to use the Wake on Lan function it works... but only the first time. If I shut down my PC and use wake on lan again it fails.
To make it work I have to reboot the router and use WOL, and everytime I need to WOL, I need to reboot the router or it fails...
So the issue doesn't come from the ethernet card but the router.
There doesn't seems to be any logs indicating an issue in the Admin panel of the web interface.
Same was happening with version 380.64_2 . Is anyone aware of this issue? Can anyone help me?
Thanks a lot :)
 
Hi,
I am using Wake-on-Wan almost eveyday and it works OK (RT-AC87U with 380.65) ... so, the issue might be localted in the Web GUI ; did you already try to issue an SSH command to wake-up the PC instead ( in this case do not forget to issue the arp -s command to have the PC info stored statically in arp table ... )
GS
 
Hi,
I am using Wake-on-Wan almost eveyday and it works OK (RT-AC87U with 380.65) ... so, the issue might be localted in the Web GUI ; did you already try to issue an SSH command to wake-up the PC instead ( in this case do not forget to issue the arp -s command to have the PC info stored statically in arp table ... )
GS
Hello GSpock, I tried but it doesn't seems to be working.
I tried with:
```
ether-wake -i br0 1C:00:00:00:96:00
```
and
```
ether-wake -b 1C:00:00:00:96:00
```
(The mac address is correct, I just hid some numbers)
What command are you using on your side?
 
Hello GSpock, I tried but it doesn't seems to be working.
I tried with:
```
ether-wake -i br0 1C:00:00:00:96:00
```
and
```
ether-wake -b 1C:00:00:00:96:00
```
(The mac address is correct, I just hid some numbers)
What command are you using on your side?

the same ... but are you sure your PC shows as static in arp table ?
what is the output of arp -a command?
 
the same ... but are you sure your PC shows as static in arp table ?
what is the output of arp -a command?
As for the arp -a command I get:

? (192.168.1.1) at 14:00:01:00:00:70 [ether] on enp0s31f6
? (192.168.1.44) at 6c:00:01:00:00:e0 [ether] on enp0s31f6

But it seems that it comes from the PC after all... It seems that if I shut down my computer correctly (from ubuntu) it works, but if I hard shutdown it or from Windows it doesn't. I have an Intel intel i219-v integrated to my Gigabyte z270X ultra gaming and I tried everything I could do to make it work after a "hard shutdown"... but nothing worked :(
 
... you have to tick the PC you want to wake-up as static (this is most probably done automatically when you use the Web GUI):
arp -s 192.168.1.44 6c:00:01:00:00:e0 (note that this need to be re-done if you reboot the router)

then when doing arp -a you will see that there is a [PERM] tag besides the PC ..... in addition, you have to go to the BIOS of the PC and allow wake-on-lan feature to have it work from Windows.

BTW, see also here: https://www.snbforums.com/threads/mad-wife-keeps-switching-off-router-stopping-wol.31950/
 
Thanks for your help guys.
So I did what you told me to do @GSpock and now my arp -a looks like this:

admin@RT-AC87U-0770:/tmp/home/root# arp -a
? (192.168.1.145) at <incomplete> on br0
? (192.168.1.177) at <incomplete> on br0
1.191.24.90.rev.sfr.net (93.25.190.1) at 00:01:7d:8e:00:00 [ether] on eth0
android-7014594d87e69faf (192.168.1.34) at <incomplete> on br0
android-94d53d8468b9418d (192.168.1.176) at 60:f1:89:12:6d:de [ether] on br0
? (192.168.1.109) at 00:01:bf:08:00:00 [ether] on br0
? (192.168.1.150) at 00:01:0d:90:00:00 [ether] PERM on br0
? (169.254.39.49) at 00:01:a9:cb:00:00 [ether] on br0
android-c6384e7c1e0800d5 (192.168.1.197) at 6c:2f:2c:99:f4:f4 [ether] on br0
MBP-de-Tuatini (192.168.1.44) at 00:01:08:bd:00:00 [ether] on br0
? (192.168.1.240) at 00:01:7a:31:00:00 [ether] on br0

192.168.1.150 is the IP of my machine I want to wake on lan and it has the PERM on it. But it still doesn't work :( . I also verified that I had the "Wake on lan" feature activated in my BIOS.
 
But it seems that it comes from the PC after all... It seems that if I shut down my computer correctly (from ubuntu) it works, but if I hard shutdown it or from Windows it doesn't. I have an Intel intel i219-v integrated to my Gigabyte z270X ultra gaming and I tried everything I could do to make it work after a "hard shutdown"... but nothing worked :(
This sounds like a Power Management setting. Check the BIOS for the ErP state, it should be disabled. Also check the Power Management properties of the network card in Windows and Ubuntu.
 
This sounds like a Power Management setting. Check the BIOS for the ErP state, it should be disabled. Also check the Power Management properties of the network card in Windows and Ubuntu.
ErP was set on "Disabled" from the beginning as the manual of my motherboard says:

ErP Determines whether to let the system consume least power in S5 (shutdown) state. (Default: Disabled) Note: When this item is set to Enabled, the following functions will become unavailable: Resume by Alarm, PME event wake up, power on by mouse, power on by keyboard, and wake on LAN.

As for my network card here are the infos about it:

*-network
description: Ethernet interface
product: Ethernet Connection (2) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 00
serial: 00:01:0d:90:00:00
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.2-4 ip=192.168.1.150 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:133 memory:ef200000-ef21ffff

But I don't know what to do from here :(
Thank you for your help.
 
ErP was set on "Disabled" from the beginning as the manual of my motherboard says:

ErP Determines whether to let the system consume least power in S5 (shutdown) state. (Default: Disabled) Note: When this item is set to Enabled, the following functions will become unavailable: Resume by Alarm, PME event wake up, power on by mouse, power on by keyboard, and wake on LAN.

As for my network card here are the infos about it:

*-network
description: Ethernet interface
product: Ethernet Connection (2) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 00
serial: 00:01:0d:90:00:00
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.2-4 ip=192.168.1.150 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:133 memory:ef200000-ef21ffff

But I don't know what to do from here :(
Thank you for your help.

On the device manager in windows, go to your network card and make sure the wake-on-lan feature is activated (this is an example of one under W10, loook might be different)


upload_2017-2-20_10-51-47.png
 
On the device manager in windows, go to your network card and make sure the wake-on-lan feature is activated (this is an example of one under W10, loook might be different)


View attachment 8584


Yes well, this is exactly what I had from the start :( .
1487700270-capture.png

Maybe wake on lan just doesn't works if I don't shutdown properly my system from ubuntu? I don't know what to do/think :(
 
Final check: I guess that you have correctly port forwarded the magic packet to the correct static IP of the PC you want to wake-up .... (and do not forget that ARP command on the router does not survive a reboot ...)
 
Final check: I guess that you have correctly port forwarded the magic packet to the correct static IP of the PC you want to wake-up .... (and do not forget that ARP command on the router does not survive a reboot ...)
Yes I've set the ARP command and this is what I have for the port forwarding:
ASUS_Wireless_Router_RT-AC87U_-_Virtual_Server___Port_Forwarding.png
:(
 
Strange, in one of your earlier message, you said the IP of the PC was "? (192.168.1.150) at 00:01:0d:90:00:00 [ether] PERM on br0"
but here you forward ports 7 & 9 (BTW 9 should be enough) to 192.168.1.255 ..... !
 
Strange, in one of your earlier message, you said the IP of the PC was "? (192.168.1.150) at 00:01:0d:90:00:00 [ether] PERM on br0"
but here you forward ports 7 & 9 (BTW 9 should be enough) to 192.168.1.255 ..... !
Well, correct me if I'm wrong but 192.168.1.255 is the local broadcast address so it should be ok. I tried to redirect both ports 7 & 9 on 192.168.1.150 instead but it still doesn't work =/
 
So in the end I ended up using something ugly... really ugly.
Basically on my motherboard manual there is an option called "AC back":

AC BACK: Determines the state of the system after the return of power from an AC power loss.
- Always Off: The system stays off upon the return of the AC power. (Default)
- Always On: The system is turned on upon the return of the AC power.
- Memory: The system returns to its last known awake state upon the return of the AC power.

I've bought a smart plug from tp-link with which I can cut or restore the power of my computer remotely.
So to "boot it" I just turn the switch off/on, the computer will detect the AC being back, turn on my computer and voilà!
And it also have the "real time power consumption" feature so I can know if my computer is booting or just dead based on the kWh consumed.
I don't really like this dumb solution but well... it works at least.
Thank you for your help and your patience @GSpock !
 
Last edited:
.... I must say I am really curious to know why it does not work ..... I have been using it for years without any problem .... :confused:
what tool do you use to send the magic packet (from the internet) ?
 
.... I must say I am really curious to know why it does not work ..... I have been using it for years without any problem .... :confused:
what tool do you use to send the magic packet (from the internet) ?
All the manipulation I did so far were in the local network. And you'll laugh but to use Wol remotely I activated the router Web interface accessible with a ddns service. I log in from there and activate Wol through the web interface. But if Wol worked properly I would certainly have created a little script to throw an ether-wake command through ssh to make it easier to wake up my computer remotely x) .
 
well, WOL is working correctly ... sorry to say, there must be a hick-up somewhere in one of your configurations ....
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top