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

arp -s [IP] [MAC]

Discussion in 'Tomato Firmware' started by msb113, May 31, 2009.

  1. msb113

    msb113 Addicted to LI Member

    Hi all... could someone please tell me if this is the command i would use for settinc a staic arp... I need this for WOL over the internet because as of right now after 5 mins or so after my system is off I cannot wake over the internet.

    Also do I enter this in the script secion under INIT?

    thanks for your help

    Mark
     
  2. nvtweak

    nvtweak LI Guru Member

  3. msb113

    msb113 Addicted to LI Member

  4. ratchet

    ratchet Addicted to LI Member

    Enter this in scripts:

    sleep 5
    ip neigh change 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
    ip neigh add 192.168.1.254 lladdr ff:ff:ff:ff:ff:ff nud permanent dev br0
     
  5. msb113

    msb113 Addicted to LI Member

    Thanks... will give it a try and post back tomorrow... do appreciate all the help guys... still learning.
     
  6. msb113

    msb113 Addicted to LI Member

    Well that was a no go also... am I missing something? have my ports forwarded correctly and it does work within 20 mins of shutting the system down but not after a longer period of time passes... I do see the new entry in the WOL for the last script entry for the Mac Addy and ip.

    Am I doing something wrong?

    Thanks again for your patience
     
  7. ratchet

    ratchet Addicted to LI Member

    Not on the desktop so I can't help now. Sounds like the ARP cache flush problem which Tomato resolves. You must be on the right track. I'll give you screenshots of everything sometime today!
     
  8. ratchet

    ratchet Addicted to LI Member

    In WOL, does it look like this?

    [​IMG]
     
  9. msb113

    msb113 Addicted to LI Member

    Yes the 192.168.1.254 addy is showing Active in arp... but my desktop is listed but not active which is why i cannot remote wake it.
     
  10. mstombs

    mstombs Network Guru Member

    Do you just need the "-i br0" on the arp command?

    Code:
    arp -i br0 -s 192.168.1.200 11:22:33:44:55:66
    # arp -n
    ...
    ? (192.168.1.200) at 11:22:33:44:55:66 [ether] PERM on br0
     
  11. msb113

    msb113 Addicted to LI Member

    Well it seems to be working this morning for some strange reason... will post back tomorrow after i check it again... have not tried what you have suggest yet Mstombs... thanks again all.

    Mark
     
  12. msb113

    msb113 Addicted to LI Member

    Thought it worked but then realized I did it within WOL while remoted in to the router...
    Mstombs can you tell me in a little more detail what part of that script do I add or do I added it as Is?

    Thanks
     
  13. mstombs

    mstombs Network Guru Member

    Sorry I was referring back to your title of this thread - suggesting you may need to specify the interface when adding the static arp. I suggest the commands should only be needed in init script, you may need a longer time delay to ensure the lan bridge interface is ready. I assume the "ip" commands are just another way ofgetting the info into the kernel arp table?
     
  14. ratchet

    ratchet Addicted to LI Member

    [​IMG]
    [​IMG]

    I must assume all non router parameters have to be correct or this wouldn't work at all. The other Tomato setup is port forwarding. The port of course is your choice. Should be the same number in both fields blacked out (can you say paranoid? lol) Set everything up the way I've showed you. This setup works, just turned my PA desktop on from my daughters house in Boston last week! It took me months to get here so have patience though.
     
  15. msb113

    msb113 Addicted to LI Member

    Well thanks for all your help guys... ended up being that the ports were not forwarding for some reason so just reinstalled tomato and set it back up and works great.

    Just dont go too far... I am sure I will have many more questions to come...lol

    Lovin Tomato!

    Mark
     

Share This Page