Can't Delete ARP Cache on Windows 7 x64

1

When I enter the command line arp -d * at an instance of cmd.exe, I get

The ARP entry deletion failed: The parameter is incorrect

I can delete individual entries fine, e.g. arp -d 192.168.1.1

I also have Cygwin and Git Bash installed, so I thought maybe the * was getting expanded like in a Unix shell, but it doesn't appear so, as echo * from cmd.exe results in a simple * output. I have also tried escaping the asterisk and enclosing it in quotes with arp -d "*" and arp -d ^*. Both result in the same error.

I do have two NICs on this machine, an internal and a USB, but I get the same error when I unplug the USB NIC.

The account I am running from is an administrator, and I have also tried right-clicking cmd.exe and selecting "Run as Administrator."

Sam Skuce

Posted 2016-09-20T18:27:41.613

Reputation: 295

1Same result confirmed on Win10 Pro. – mt025 – 2016-09-20T18:58:49.783

Hm, is this something I just haven't noticed yet on Win7? The '*' wildcard is supposed to be supported according to the arp -help documentation, and it used to work in XP... – Sam Skuce – 2016-09-20T19:01:03.777

1This happened to me on two HP machines that I recently restored to the original factory settings. All of the other machines of the same model had no issues with this command. This was using Windows 10. – kojow7 – 2018-10-23T20:03:44.317

Answers

1

Use the command netsh interface ip delete arpcache

You can then run arp -a to confirm that the entries have gone.

Clear, Delete and Refresh ARP Cache Entry

mt025

Posted 2016-09-20T18:27:41.613

Reputation: 2 392

Yes, that works thanks! I'm going to leave the question open for now though, since the arp command line utility is supposed to work as well, and there's not good reason for them to break something that used to work... – Sam Skuce – 2016-09-20T19:03:24.153