Hi,
I want to develop an embedded web server using a NXP LPC2378 ARM. To develop it I want to buy the RL-ARM library and compiler but first I want to know if it supports the console command ARP -s command.
Sometimes if a customer don't remember the IP address is possible to associate a new IP address with the product MAC address with this ARP command and to web site access using this new IP address.
On the product brochure appears this protocol but I found some other servers with this protocol and this command don't operate.
Thanks and best regards.
Eaactly how where you planning to use it?
If I don't know the IP of the embedded web server, then it doesn't help to give the web server a new ARP entry. And if you don't know the IP, you can't use a web server page to set it, so you would need to use a USB or serial cable. But if you have access to the device using a serial cable, you can figure out what IP it has.
On my local machine, I can use ARP -s and add new entries. This arp-poisoning can allow me to use the wrong IP to access a unit. But then it doesn't matter if the embedded unit has support to add ARP entries (which it obviously must have) since the command must be run on your PC, and you must know the MAC address of the embedded unit.
I think you're misunderstanding what the ARP -s command actually does.
When you enter such a command on your PC (or whatever) it updates the ARP table contained on that PC. It does nothing directly to the remote device at all.
There are some devices that allow temporary IP addresses to be allocated by using a combination of ARP -s and telnet (e.g., Lantronix) and I've seen/implemented devices that use the combination of ARP -s and ping to do the same thing.
But, ARP -s on its own does nothing.
Dear Per and David,
Thanks for your replies. As you said David I want to use a combination of ARP -s and ping to create a temporary IP and web server access.
This combination operates with my Lantronix server and is a fast method to server access. If I don't remember the IP address and the subnet mask is the same as my computer I only has to create a temporary IP address with the ARP -s command and write it on my web browser to web site server access.
I will use other library if this command doesn’t operate.