• How to clear arp cache ?
  • How to refresh arp table ?
  • 1
    I assume you meant "arp cache" – poige Feb 1 '11 at 5:23
arp -da

Then it's autorefreshing. :-)


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
  • Can I use your script in my weblog? pahlevanzadeh.org , 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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