ARP flush
Can I flush all my arp entries with one single command instead of doing it one by one using the arp -d command?
|
Try using this:
for addr in `arp -n`;do arp -nd $addr;done It will throw up some errors but it should delete all of the entries. |
Another, cleaner way...
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
|
Yes, you can!
You could do that (on RHEL, at least) by using "ip" command:
Code:
ip n flush Code:
ip neigh flush Code:
ip neighbour flush By the way, the IPv4 neighbour table is known as "ARP table". You could use -statistics option too: Quote:
|
All times are GMT -5. The time now is 02:57 AM. |