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.

link|improve this question

71% accept rate
feedback

3 Answers

up vote 11 down vote accepted

Here is what i fond and it works great

http://translate.google.ca/translate?hl=fr&langpair=en%7Cfr&u=http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/063cfe1a-d347-42af-9d41-7962e758de24

And 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

link|improve this answer
Thanks a ton!. Worked perfectly. :) – user18151 Jan 30 '10 at 9:34
If anybody is wondering what "Network card name here" means, it was "Local Area Connection" for me. – user18151 Jan 30 '10 at 9:35
1  
Use the command netsh interface show interface to get a list of valid interfaces (network card names). – Joel Coehoorn Aug 4 '10 at 18:21
feedback

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
link|improve this answer
feedback

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"

link|improve this answer
I'm sorry I should have mentioned that more prominently, but I AM running as an administrator. – user18151 Jan 27 '10 at 19:53
feedback

protected by studiohack Apr 28 '11 at 10:10

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.