1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setting Static ARP with Tomato on Linksys WRT54G/GS/GL

Discussion in 'Tomato Firmware' started by michael.touw, Jan 30, 2011.

  1. michael.touw

    michael.touw Networkin' Nut Member

    Hi,

    I've been trying to wake my PC's via WOL. This is no problem when both pc's where turned on, but the active ARP addresses are removed after the PC's are turned off.

    Now i was wondering if it is possible to tell the router to keep those addresses saved in the Tools -> WOL menu. So that i can wake my pc's all the time without any hassle.

    I've already tried different Init. scripts but none seem to be working. Any ideas?

    I'm using the latest tomato firmware and this works without any problems.

    Michael
     
  2. Engineer

    Engineer Network Guru Member

    Is this what you tried in the Init script?

    You would need static IP addressed (from the router side IIRC).

    Add the following to your "init" script (remove everything that was entered previously) and save.

    Sleep 5
    ip neigh change YOUR PC IP lladdr YOUR PC MAC nud permanent dev br0
    ip neigh add YOUR PC IP lladdr YOUR PC MAC nud permanent dev br0
     
  3. michael.touw

    michael.touw Networkin' Nut Member

    Both my PC's have static IP address 192.168.1.7 and .8 at the end. After inserting your script the WOL IP address keep disapearing.

    So the script is not working for me. Any idea what the problem could be?
     
  4. Engineer

    Engineer Network Guru Member

    They are static set from the router, yes? I just looked at my router and it lists every device in my house (under WOL) that is set static from the router. Have not tried to wake any of them however (WOL turned off).
     
  5. michael.touw

    michael.touw Networkin' Nut Member

    Thank you both for reply,

    WLKN, i do not want all my computers to be woken i want to choose which computer to wake up.
    So if i have this code:

    Sleep 5
    ip neigh change 192.168.1.7 lladdr 00:1D:92:66:7A:47 nud permanent dev br0
    ip neigh add 192.168.1.7 lladdr 00:1D:92:66:7A:47 nud permanent dev br0

    I should keep the MAC addresses listen as FF:FF:FF:FF:FF:FF right?

    I've now also put 2 static addresses for my 2 computers in the DHCP table.
     
  6. Engineer

    Engineer Network Guru Member

    Generally, if you want the magic packet broadcast, you would set up a generic IP (unused on the same subnet: 192.168.1.254 for example) and included that as well as the FF:FF:FF:FF:FF:FF in the MAC. When you broadcast the magic packet (from the internet), it would be broadcast with the real MAC address and would wake up the correct PC.

    See here: http://forums.anandtech.com/showpost.php?p=27324103&postcount=79

    (See Edit #2 of the above page).

    If you are trying to wake from the Tomato WOL menu, I think all you have to do is to place the PC's into the STATIC table of the tomato router and they will show up all the time in the WOL menu and should just work with no need to static ARP (IIRC but I could be wrong).
     
  7. michael.touw

    michael.touw Networkin' Nut Member

    I got it to work without any problems after fiddleing around a bit. Thank you all for your very clear help.
     

Share This Page