Adding Static ARP Table Entries in Windows Vista and Server 2008

Due to security settings in Vista and Server 2008 (and presumably, Windows 7), you may have trouble adding a static ARP entry to the ARP table.
Yes, you may still have trouble even if you run the command prompt (cmd.exe) as Administrator.
Commonly, and the error I have gotten, you will see something like:
“The ARP entry addition failed.”
If that occurs, you can try this method instead. Not as quick, but it should work.
- Run the command prompt as Administrator
- Type netsh -c “interface ipv4″
- The prompt will change to “netsh interface ipv4>”
- Type the following:
add neighbors “Local Area Connection” “xxx.xxx.xxx.xxx” “00-00-00-00-00-00″
…and replace Local Area Connection with the name of your connection. Obviously, replace the x’s and 0′s with your IP and MAC address, respectively.
Categories: Windows 7, Windows Desktop Operating System, Windows Vista
Can you help how to put those commands on a batch so it’s easy to run it by clicking on it when computer starts.
If you run the command as:
add neighbors “Local Area Connection” “xxx.xxx.xxx.xxx” “00-00-00-00-00-00″ store=persistent
…it will save it and you won’t need to run it at every boot.