Windows 7: The ARP entry addition failed: Access is denied

26

19

I'm on Windows 7 and am trying to assign a static arp entry for my default gateway using the command:

arp -s 172.24.7.254 00-05-01-f9-28-00 172.24.1.20

But I get the following error:

The ARP entry addition failed: Access is denied.

When I don't mention my ip-address at the end, the static ip gets assigned for the virtual interface created automatically for virtualbox. I'm using an elevated prompt. I'll be grateful for suggestions. Thanks.

0fnt

Posted 2010-01-27T16:21:40.837

Reputation: 1 741

Answers

39

Here is what I found and it works great

arp -s : access denied. On the default gateway

Here is what I used :

delete:

netsh interface ip delete neighbors "Network card name here" "Gateway.IP.goes.here"

Add:

netsh interface ip add neighbors "Network card name here" "Gateway.IP.goes.here" "MAC-address-of-gateway-with-dash-here"

good luck

RigorM

Posted 2010-01-27T16:21:40.837

Reputation: 406

2If anybody is wondering what "Network card name here" means, it was "Local Area Connection" for me. – 0fnt – 2010-01-30T09:35:54.687

9Use the command netsh interface show interface to get a list of valid interfaces (network card names). – Joel Coehoorn – 2010-08-04T18:21:02.680

For me it was "Ethernet". – Ryan – 2017-09-09T09:23:43.573

20

To set arp static in windows 7 64bit you must use netsh comand as follow

enter this command

netsh interface ipv4 add neighbors "Local Area Connection" inetaddr MAC

For Example

netsh interface ipv4 add neighbors "Local Area Connection" 192.168.0.1 00-24-01-d2-3a-bd

(If you are using a wireless rather than a LAN cable connection, use "Wireless Network Connection" instead.)

mostafa elkersh

Posted 2010-01-27T16:21:40.837

Reputation: 201

0

To modify routing info, you need to be an administrator.

Find the Command Prompt in your start menu, right click on it and choose "Run as administrator"

Goyuix

Posted 2010-01-27T16:21:40.837

Reputation: 6 021

I'm sorry I should have mentioned that more prominently, but I AM running as an administrator. – 0fnt – 2010-01-27T19:53:08.697