unable to delete "unreachable" entries from arp cache

Ale Madama 291 Reputation points
2021-04-02T09:51:43.35+00:00

Hi all,
I'm struggling with this Windows 10 issue.

My main problem is that I have to clear local dns as I can't resolve correctly one name of a PC.

if I ping myPC I get a wrong IP

I found that the arp cache still keep this wrong (old) IP, using this command:

netsh interface ipv4 show neighbors

then I tried:

arp -d

netsh interface ipv4 delete neighbors "interface name"

both command get me a successfull feedback but I still see the old/wrong IP in the table

more, after the above cmds, I see that only the "unreachable" entries remains in the table, cleared the other...

how can I force the removing everything?, also the "unreachable" entries?

thanks

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-04-05T06:20:21.04+00:00

    Hi,

    Thanks for posting in Q&A platform.

    Please try to run this command in PowerShell with administrator privilege to see if the specific ARP entry can be deleted.

    netsh interface ipv4 delete neighbor "interface name" 10.1.1.1 aa-bb-cc-dd-ee-ff store=persistent

    Based on provided information, my understanding is the hostname of a PC cannot be resolved correctly. If the issue still existed, please run the following command in a CMD window to see if the hostname can be resolved to a correct IP by DNS server:

    ipconfig /flushdns

    nslookup /hostname of PC

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Ale Madama 291 Reputation points
    2021-04-05T07:56:02.837+00:00

    Hi Sunny, thanks for your suggestions.

    I find the wrong IP address in both WiFi and Ethernet interfaces, like below:

    Interface 16: WiFi
    Internet Address                              Physical Address   Type
    --------------------------------------------  -----------------  -----------
    ...
    192.168.178.122                               Unreachable        Unreachable
    ...
    
    Interface 18: Ethernet
    Internet Address                              Physical Address   Type
    --------------------------------------------  -----------------  -----------
    ...
    192.168.178.122                               00-00-00-00-00-00  Unreachable
    ...
    

    When I run (without subinterfaces, as I haven't):

    netsh interface ipv4 delete neighbor "WiFi" 192.168.178.122 store=persistent
    

    I get:

    Element not found.
    

    for both interfaces

    If I run:

    nslookup myPCname
    

    I get:

    Server:  fritz.box
    Address:  192.168.178.1
    
    Name:    myPCname.fritz.box
    Addresses:  192.168.178.122
              192.168.178.50
    

    then it resolves, as first, the wrong IP address (the second one is the right one)

    I don't know what else to do any longer...


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.