Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  • How to clear arp cache ?
  • How to refresh arp table ?
share|improve this question
I assume you meant "arp cache" – poige Feb 1 '11 at 5:23
@poige, thanks, corrected. – Kumar Feb 1 '11 at 5:27
up vote 5 down vote accepted
arp -da

Then it's autorefreshing. :-)

share|improve this answer

How to refresh arp table ?

You can save ip from arp table:

arp -an | sed -s 's/.*(\([0-9.]*\)).*/\1/' > /tmp/ip_to_arp

And then ping all ip:

for ip in `cat /tmp/ip_to_arp`; do ping -c 1 ${ip}; done


for ip in `cat /tmp/ip_to_arp`; do arping -c 1 -I eth0 ${ip}; done
share|improve this answer
Can I use your script in my weblog? , I write about freesoftware and unix, linux and programming in the freesoftware world.... of course in Persian... – PersianGulf Sep 22 '15 at 23:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.