Summary :Clearing entire arp table

From: Vlade Ristevski <vristevski_at_hotmail.com>
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 : 
http://www.sun.com/bigadmin/scripts/submittedScripts/arpad.pl.txt
(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 
name.
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 
the
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)
grizzly and  BASE-ADDRESS.MCAST.NET .

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



>From: "Vlade Ristevski" <vristevski@hotmail.com>
>To: sun-managers@sunmanagers.org
>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.
>http://www.hotmail.com
>_______________________________________________
>sunmanagers mailing list
>sunmanagers@sunmanagers.org
>http://www.sunmanagers.org/mailman/listinfo/sunmanagers


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
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