WOL on the web interface works but ether-wake does not work

Discussion in 'Tomato Firmware' started by Kiwi8, Feb 9, 2009.

  1. Kiwi8

    Kiwi8 LI Guru Member


    I would like to ask what are the possible reasons that WOL on the web interface works but ether-wake does not?

    Ok, I am not trying to wake up a PC that is connected by wire to the router, but a PC that is connected to another router that is WDS-connected to the first router.

    Thanks in advance.
  2. Kiwi8

    Kiwi8 LI Guru Member

    I try to narrow down the question.

    First of all, can I ask those of u who are reading Tomato's source code, what does the web interface's "Click to wake up" do as in the commands being executed? After knowing that, then perhaps I can adapt it to be used in the command line interface.

  3. Kiwi8

    Kiwi8 LI Guru Member

    Please help! No one here uses Wake-On-LAN and WDS together?
  4. Engineer

    Engineer Network Guru Member

    I'm not sure if it would work, but did you try ether-wake -b MAC ?

    The -b = broadcast address so it might broadcast to every port.

    I'm wondering if this could be something dealing with whether the IP is active in the ARP tables or not. I know that I (and others) had a heck of a time trying to WOL over the internet using magic packets because of the the PC dropping from the active status in the ARP tables.
  5. Kiwi8

    Kiwi8 LI Guru Member

    I had already tried the -b parameter in vain for ether-wake before creating this thread.

    But thanks for trying, at least someone noticed my thread. :)
  6. Engineer

    Engineer Network Guru Member

    You state that you can use the WOL from the GUI of the router. On the WOL page, does it show the PC that you are trying to wake as "(active in ARP)" before you try to wake it?
  7. Kiwi8

    Kiwi8 LI Guru Member

    I notice that the PC's entry in the WOL page will be "active in ARP" for a short while after turning off. But regardless of whether the entry is "active in ARP" or not, clicking on it or inputting the MAC address in the box below from any router linked by WDS wakes that PC up. :)

    Hence I believe the WOL GUI coding does a little more than ether-wake. :)
  8. Engineer

    Engineer Network Guru Member

    Yes, I agree. I'm wondering if it (the GUI) will make it active and then wake it up whereas ether-wake will only send to "active". I assume ether-wake will not wake it even if it's still active in ARP then? Possibly ether-wake only sending to wired ports?

    Does ether-wake work on the router that's directly connected?

    By the way, I'm not a coder but I'm interested in your problem and am trying to learn (and help if possible).
  9. Kiwi8

    Kiwi8 LI Guru Member

    Yes, currently ether-wake only works on the computers that are connected to the wired ports directly. :)
  10. Kiwi8

    Kiwi8 LI Guru Member

  11. bigclaw

    bigclaw Network Guru Member

    The Tomato source code is freely available. I just downloaded it myself and took a cursory look; it seems that the exact command Tomato executes is this:

    ether-wake -i br0 <MAC_Address>

    Actually the source code looks like this:

    eval("ether-wake", "-i", nvram_safe_get("lan_ifname"), mac);

    Where the lan_ifname NVRAM parameter is br0 at least in my case.
  12. Kiwi8

    Kiwi8 LI Guru Member

    Yeah it works, thanks.

    I did download the source code but I guess the search string that I used in traversing the files were not accurate. :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice