MIB Variables
The ARP protocol implements a number of configrable variables in
net.link.ether.inet branch of the sysctl(3) MIB.
max_age How long an ARP entry is held in the cache until it needs
to be refreshed.
Code:
$ sysctl -n net.link.ether.inet.max_age
1200
I know of no direct way to query a specific arp entry for 'how old it is', and I gather that each arp entry lives at most 20 minutes (1200 seconds) before it needs to be refreshed. So running a cron job that saves records (arp -a) every ~20 minutes may work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.