OpenWrt Forum Archive

Topic: arp on openwrt?

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've tried googling but couldnt nail this one ..  I need to find a way to resolve ip to mac on wrt54gs running openwrt. I couldnt find anything other than /proc/net/arp. Is there any other utility to send out an arp query and get back the mac?

ping The.IP.Adress.Number

and view arp list

arp

arping?

Well I'm not sure if arping serves the purpose. I couldnt get it working so could see the results. I'll try ping followed by arp. I assume that adds the new entry to the arp table? Thanks for the tip.

root@RC5_testike:~# arping -I br0 192.168.1.124 
ARPING to 192.168.1.124 from 192.168.1.1 via br0
Unicast reply from 192.168.1.124 [0:c:e5:46:6:68] 7.841ms
Unicast reply from 192.168.1.124 [0:c:e5:46:6:68] 2.950ms
Unicast reply from 192.168.1.124 [0:c:e5:46:6:68] 3.052ms
Unicast reply from 192.168.1.124 [0:c:e5:46:6:68] 3.059ms
Sent 4 probes (1 broadcast(s))
Received 4 replies
root@RC5_testike:~# arping -I eth2 192.168.2.2  
ARPING to 192.168.2.2 from 192.168.2.101 via eth2
Unicast reply from 192.168.2.2 [0:1:2:af:95:ec] 5.652ms
Unicast reply from 192.168.2.2 [0:1:2:af:95:ec] 3.495ms
Unicast reply from 192.168.2.2 [0:1:2:af:95:ec] 3.586ms
Unicast reply from 192.168.2.2 [0:1:2:af:95:ec] 3.528ms
Sent 4 probes (1 broadcast(s))
Received 4 replies
root@RC5_testike:~#

Thanks..  I was trying it without the -I argument and wasn't getting back a response.

The discussion might have continued from here.