Clear ARP table in Checkpoint

Yesterday my colleague asked how to clear all entries in the ARP table of the
NGX in question (Splat). I thought the arp command of the Linux would include some switch for that case too – but it didn’t. To delete ARP entry from the ARP cache you use #arp -d , and it has no provision for deleting multiple entries in one go. So here is the one-liner
that does just that – clears all entries in ARP cache. I found it in Google and
slightly rearranged for brevity (note- it is one line of text) :

for ip in $(awk ‘/([[:digit:]]\.)+/ {print $1}’ /proc/net/arp) ; do arp -d $ip ; done

Comments

0 Responses to "Clear ARP table in Checkpoint"

Post a Comment

Search This Blog

Blog Archive

Total Pageviews