A command/application to print the ARP cache timeout for arp entry

hi,
I need to get the arp cache (arp table) entry timeout.

arp -a command in console doesn't give me that info.
I checked the arp man and --help , no help there :)

I know its possible to change this timeout, but I want to understand how to check (besides actual measuring :)

Thanks.
LVL 5
muhalokAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wesly_chenCommented:
Hi,

# egrep . /proc/sys/net/ipv4/neigh/eth0/*
...
/proc/sys/net/ipv4/neigh/eth0/gc_stale_time:60     <=== default 1 minute
...
---http://www.uwsg.iu.edu/hypermail/linux/net/0012.2/0035.html ---
   An ARP entry is a candidate to be removed gc_stale_time seconds after last used.
Garbage collection runs every gc_interval seconds which is when the entry can be deleted.
However, an ARP cache entry will not be removed while there is a reference to it such as
route cache entry. The ARP cache entry will move from reachable to stale state in the normal
time but stays stale until the route cache entry is removed.
The route cache may keep an entry for several minutes even with no traffic or sessions to that
address. So after the route cache entry is removed, the reference to the ARP cache entry goes away.
Then next time ARP cache garbage collection runs the entry will be removed.
-----
The other useful command:
# ip -s neigh list

Regards,

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
muhalokAuthor Commented:
Thanks - exactly what I needed.
Also: Thanks for the additional note about routing cache.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.