Summary :Clearing entire arp table

From: Vlade Ristevski <>
Date: Thu Jan 10 2002 - 14:58:14 EST
I received help for various people and am thankful to them:
Kevin Metzger
Brad Parks
Stu Tomlinson

There are various methods to clear arp table. The safest is probably to use 
the perl script at :
(Stu Tomlinson's suggestion)

I used the suggestion by Kevin Metzger shown below and it worked:
Here is a script that clears out everything except the "publish"ed arp entry
that a machine needs.  My machine name is grizzly, replace your machine 
In general, be sure to not 'apr -d' any static routes without readding them.
The 'apr -a' gathers the whole table then writes "arp -d" and the names of 
entries to tst2.  After making tst2 executable, it runs tst2 and deletes one
at a time all teh entries in the arp table but the one for (in my case)

# cat tst
arp -a|awk '{print "arp -d " $2}'|grep -v 'BASE'|grep -v 'grizzly'|tail 
chmod 700 tst2

>From: "Vlade Ristevski" <>
>Subject: Clearing entire arp table
>Date: Thu, 10 Jan 2002 13:55:16 -0500
>I would like to know if there is a way to clear the entire arp table. In
>Windows(arp -d) and Cisco (clear ip arp) the entire arp table is cleared,
>but on *nix I only see the option to clear an arp entry. If anyone has
>written a script to do this, could you pass it on? Thanks alot.
>Join the worlds largest e-mail service with MSN Hotmail.
>sunmanagers mailing list

MSN Photos is the easiest way to share and print your photos:
sunmanagers mailing list
Received on Thu Jan 10 13:59:51 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:31 EST