Professional Documents
Culture Documents
Delete All ARP Entries On SPLAT
Delete All ARP Entries On SPLAT
We want to delete all ARP entries and see if the ARP cache was filled up again (and correctly).
While Windows has arp -d * as a working command to delete all entries at once, under Linux and therefor
SPLAT you have to try something different.
#!/bin/bash
for arpentries 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 $arpentries
done