OpenWrt Forum Archive

Topic: Static ARP entry

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

Hi!
Is there a way to add static arp entry to apr cache?

"ip neigh" and "arp -s" is not working for me.

Thanks for answers.

'arp' tool is not installed in default installation. Word 'arp' is just shell alias of 'cat /proc/net/arp'.
Older versions (AA) have package net-tools-arp.
I cant see it since BB.
I compiled arp myself. If you need arp for ar71xx trunk version (musl libc) I can share. Its not for CC and earlier.

(Last edited by bolvan on 28 Jan 2016, 15:22)

try to install the package "ip".

greetings

I tried it, but "ip neigh" still not working.

bolvan wrote:

'arp' tool is not installed in default installation. Word 'arp' is just shell alias of 'cat /proc/net/arp'.
Older versions (AA) have package net-tools-arp.
I cant see it since BB.
I compiled arp myself. If you need arp for ar71xx trunk version (musl libc) I can share. Its not for CC and earlier.

Share please. :-)

peti wrote:

Share please. :-)

'ip' tool is part of the newer toolset 'iproute2' and can be used to manipulate arp as well
see "ip neigh"
if you still need arp binary  i uploaded it here : https://www.sendspace.com/file/qf4ljl
Run this : ln -s /lib/libc.so /lib/ld-musl-mips.so.1

(Last edited by bolvan on 1 Feb 2016, 10:19)

Thanks, I made a mistake. You need to install "ip full" package not "ip" to get "ip neigh" functionality.
Thanks for answers.

The discussion might have continued from here.