Binding IP and MAC address prompts ARP entry failed to add access denied

Binding IP and MAC address under Win7 prompts "ARP entry failed to add: access denied

method/step

 
  1.  

    We all know that the IP and MAC addresses can be bound by directly executing the arp -s command, but in Win7, you will encounter the situation that you cannot run arp -s for static mac binding, prompting "ARP entry failed to add: Access is denied." ( English version prompt: The ARP entry addition failed: Access is denied. ).

    Binding IP and MAC address prompts ARP entry failed to add access denied
  2.  

    The operation of binding IP and MAC addresses under Win7 is different from that of XP. Win7 users need to use the netsh command at this time. The specific operations are as follows:

      1. Enter in CMD: netsh ii show in

     

    Binding IP and MAC address prompts ARP entry failed to add access denied
  3.  

    Then find the "Idx" corresponding to "Local Area Connection" (mine is "11", and the number after neighbors below is the same as here.)

      2. Enter the following in CMD: netsh -c "ii" add neighbors 11 "gateway IP" "Mac address", where 11 is the idx number.

      ok, done!

      Then arp -a to see if it has been bound?

      Similarly, using arp -d on Win7 cannot completely delete the binding, you must use netsh -c "i i" delete neighbors IDX (IDX is changed to the corresponding number) to delete the MAC address binding.

       1. Use the arp -a command to view the physical address of the MAC network card of the gateway

      2. Use the netsh ii show in command to view the idx number of the local connection

      3. Use netsh -c "i i" add neighbors to bind the idx "gateway IP" "gateway mac" command of the local connection

      4. Use arp -a to view the results

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326516245&siteId=291194637