Sign in with
Sign up | Sign in
Your question

writing a .cmd file to add 2 addresses to arp table at start

Last response: in Networking
Share
April 27, 2007 4:09:04 PM

I need help writing a command file that adds 2 IP's to my computer's arp table at startup.

commands are as follows:
arp -s 192.168.1.254 (MAC address)
arp -s 192.168.1.44 (MAC address)

thanks for any help
April 27, 2007 5:58:15 PM

Copy and paste your above commands into notepad.

Instead of saving it as .txt, save it as .bat or .cmd

Put in your start up. It'll add it each time you log into your computer.
April 27, 2007 8:56:23 PM

I put those into notepad and saved it as arp.cmd, placed it in the startup folder, and restarted. It kept looping the commands in a command prompt window.

I put them in exactly like the following:

arp -s 192.168.1.44 00-01-b8-d6-59-9f
arp -s 192.168.1.254 00-06-b7-29-47-cc

Is the spacing off, or do I need some command to stop the loop?

Thanks
!