Tom's Hardware > Forum > General Networking > Network General Discussions > writing a .cmd file to add 2 addresses to arp table at start

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

Forum General Networking : Network General Discussions - writing a .cmd file to add 2 addresses to arp table at start

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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

Sponsored Links
Register or log in to remove.

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.

Reply to Riser

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

Reply to killerguppy
Tom's Hardware > Forum > General Networking > Network General Discussions > writing a .cmd file to add 2 addresses to arp table at start
Go to:

There are 1251 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them