Doubt about assign Static ARP entry for Wake On Lan

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
wonder_wonder
DD-WRT User


Joined: 06 Jun 2016
Posts: 104

PostPosted: Thu Jun 16, 2016 22:27    Post subject: Doubt about assign Static ARP entry for Wake On Lan Reply with quote
Hi.
I need assign a Static ARP entry for my mac address for Wake On Lan.
I search about this and I view differents methods, and I don't know how use.

In wiki of dd wrt: http://www.dd-wrt.com/wiki/index.php/WOL
I view that I need execute this command:
Quote:
2 - Add a static ARP entry by typing the following line into the Administration -> Commands section of the Web Interface and then saving with Save Startup.
Code:
arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF


Well, but in other post of this forum: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=897509&sid=11a400e96b323a4288e65400de98b0b7

And in one link in the post above that I indicate:
http://www.ptere.com/wol/

To add a static ARP entry, is typing other command in the commands sections:
Code:
arp - s 192.168.1.10 FF:FF:FF:FF:FF:FF
But here, the FF:FF... is changed for the value of mac address.

Well, I need assign static arp for my mac, no for broadcast (I have 3 computers), but my doubt is, what command is the correct?
arp -s
or
arp -i br0 -s ?

My router: TP Link wdr4900 v1 with Firmware: DD-WRT v3.0-r29837 std (06/06/16)

Thank you very much for your attention and help!
Sponsor
Psyxroid
DD-WRT User


Joined: 24 Jan 2016
Posts: 130
Location: Midwest, US

PostPosted: Fri Jun 17, 2016 1:50    Post subject: Reply with quote
It is "arp -i br0 -s 192.168.1.10 XX:XX:XX:XX:XX:XX"
check the command help.
Code:
root@ROUTER:~# arp --help
BusyBox v1.24.2 (2016-06-06 01:03:52 CEST) multi-call binary.

Usage: arp
[-vn]   [-H HWTYPE] [-i IF] -a [HOSTNAME]
[-v]                [-i IF] -d HOSTNAME [pub]
[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp]
[-v]    [-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub
[-v]    [-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub

Manipulate ARP cache

        -a              Display (all) hosts
        -d              Delete ARP entry
        -s              Set new entry
        -v              Verbose
        -n              Don't resolve names
        -i IF           Network interface
        -D              Read HWADDR from IFACE
        -A,-p AF        Protocol family
        -H HWTYPE       Hardware address type

You can also do the same thing from the web interface, under "Services"

_________________
Buffalo WZR‑600DHP (WZR-HP-AG300H)
NiTrus
DD-WRT User


Joined: 25 Dec 2010
Posts: 295
Location: Twin Cities, MN

PostPosted: Fri Jun 17, 2016 11:50    Post subject: Re: Doubt about assign Static ARP entry for Wake On Lan Reply with quote
wonder_wonder wrote:
Hi.
I need assign a Static ARP entry for my mac address for Wake On Lan.
I search about this and I view differents methods, and I don't know how use.

In wiki of dd wrt: http://www.dd-wrt.com/wiki/index.php/WOL
I view that I need execute this command:
Quote:
2 - Add a static ARP entry by typing the following line into the Administration -> Commands section of the Web Interface and then saving with Save Startup.
Code:
arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF


Well, but in other post of this forum: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=897509&sid=11a400e96b323a4288e65400de98b0b7

And in one link in the post above that I indicate:
http://www.ptere.com/wol/

To add a static ARP entry, is typing other command in the commands sections:
Code:
arp - s 192.168.1.10 FF:FF:FF:FF:FF:FF
But here, the FF:FF... is changed for the value of mac address.

Well, I need assign static arp for my mac, no for broadcast (I have 3 computers), but my doubt is, what command is the correct?
arp -s
or
arp -i br0 -s ?

My router: TP Link wdr4900 v1 with Firmware: DD-WRT v3.0-r29837 std (06/06/16)

Thank you very much for your attention and help!


this is what i did

Router:
-save arp entry above to administration/commands:
arp -i br0 -s 192.168.1.254 FF:FF:FF:FF:FF:FF
-add port-forward to nat/qos-port forwarding tab: needed for remote WOL
WOL-udp-port 9-192.168.1.254-port 9

WOLApp:
send WOL packet from app using ip/mac address/port 9 to wake device.
always works for me.

_________________
NETGEAR R9000 | RT | 40134
NETGEAR R7800 | AP | 40134

wonder_wonder
DD-WRT User


Joined: 06 Jun 2016
Posts: 104

PostPosted: Fri Jun 17, 2016 12:03    Post subject: Reply with quote
In the first time, thank you at 2 for yours replys and help.

Ok, yes, also I use from the web interface, for shell commands.

But a question, its need click in Save Start?

Yesterday, I test with arp -s 192.168.1.10 xx:xx:xx:xx:xx:xx, then, forward port udp 9 to 192.168.1.10 and works fine, I try this after post this.

Its possible deleted actual arp entry and use that yours indicate to me? arp -i br0 -s 192.168.1.10 xx:xx:xx:xx:xx:xx
Or if edit and type new command, overwrite?

If dd wrt wiki and yours indicate that, is like above are needed for works, I want made using this.

Thank you very much!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum