Friday, May 9, 2014

clear that arp cache

arp that arp cache. oh yes.
 #!/bin/sh  
 for i in `awk -F ' ' '{ if ( $1 ~ /[0-9{1,3}].[0-9{1,3}].[0-9{1,3}].[0-9{1,3}]/ ) print $1 }' /proc/net/arp` ; do arp -d $i ; done  

No comments: