Download as docx or pdf
Download as docx or pdf
You are on page 1of 1

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.

This little script will do the job for you:

#!/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

Autor: Fabrizio Rosina

Per altra documentazione e articoli: www.gzone.it

You might also like