Operating System - HP-UX
1819902 Members
2154 Online
109607 Solutions
New Discussion юеВ

Re: how to delete arp entries in HP unix

 
network_4
Advisor

how to delete arp entries in HP unix

hi all

how to clear arp entries in HP Unix,

my server is generationg thosand of arp entries, how to erase these entries,

to stop arp poisioning
6 REPLIES 6
Sandman!
Honored Contributor

Re: how to delete arp entries in HP unix

Locate the machine that is sending out these arp records and either take it off the LAN or shut it down. What does the command below tell you?

# arp -a
network_4
Advisor

Re: how to delete arp entries in HP unix

arp -a shows a lot ip entries

Ivan Krastev
Honored Contributor

Re: how to delete arp entries in HP unix

You can delete it with arp -d , but its not recomended.
For better change arp_keep_interval to suitable value - http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=855028

regards,
ivan
Sandman!
Honored Contributor

Re: how to delete arp entries in HP unix

Pipe the output of "arp -a" to a file and filter out the unwanted entries; remove extraneous arp entries from the current arp table using "arp -d "; reload the wanted arp entries from the file above back into the arp cache. See arp(1M) for details.

~hope it helps
network_4
Advisor

Re: how to delete arp entries in HP unix

I am not getting you can u plz explain me by example
Bill Hassell
Honored Contributor

Re: how to delete arp entries in HP unix

arp -d

removes everything. There will be delays in your system as the existing connections repopulate the arp table.

arp -d 12.34.56.78.

removes the specific address 12.34.56.78

To remove specific entries, you would run the above command thousands of times to remove the unwanted entries.

Do you know which entries are wrong and must be deleted? An arp cache is designed to hold thousands of entries and automatically clears itself.

If someone is running a 'ping every address' program on your computer, the arp cache will naturally be full of entries.


Bill Hassell, sysadmin