Kumar Asked: 2011-02-01 21:18:27 +0800 CST2011-02-01 21:18:27 +0800 CST 2011-02-01 21:18:27 +0800 CST Clear arp cache 772 How to clear arp cache ? How to refresh arp table ? linux cache arp 2 Answers Voted alvosu 2011-02-01T22:21:06+08:002011-02-01T22:21:06+08:00 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 or for ip in `cat /tmp/ip_to_arp`; do arping -c 1 -I eth0 ${ip}; done Best Answer poige 2011-02-01T21:21:46+08:002011-02-01T21:21:46+08:00 arp -da Then it's autorefreshing. :-)
You can save ip from arp table:
And then ping all ip:
or
Then it's autorefreshing. :-)