static arp entries

I have seen some scenarios where administrator add static Mac address and IP address.
I wonder in which case this is supposed to be done.

Who is Participating?
vivigattConnect With a Mentor Commented:

ARP means resolution of MAC addresses (like if the the A in ARP, was for MAC address).
If a device needs to send a packet to an address which is not on the same subnet, the TCP/IP protocol is made so that said device will send the packet to the router/gateway. Then, the ARP protocol will be used to find the router/gateway MAC address.
But you will not avoid configuring some kind of routing if you have 2 different subnets and you want devices in each subnet to be able to talk to some devices on the other subnet.

The scenario I described is really the only one I can think about when you actually would need to add a static ARP entry.

Maybe you can check wikipedia article:
and maybe this article too:
arnoldConnect With a Mentor Commented:
When an IP can only be brought up by a specific system.
It also depends on where the entry is made.  Within DHCP server, this sets up the IP reservation i.e. when the system with the MAC address requests an IP it will always be assigned a specific IP (static IP by assignment).

Don S.Connect With a Mentor Commented:
Typically, this is only done as temporary measure when setting up some network appliences (NAS boxes, APC network monitor cards, etc..)  Once the applience is contacted and configured, the ARP entry is no longer needed.  Setting a statis ARP entry in your computer allows you to directly connect to an IP address that is not in your local subnet but is connected to your LAN.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

vivigattConnect With a Mentor Commented:
For instance, let's assume that you have a NAS appliance that comes out of the box with IP address, but you can't use this IP address on your own network segments.
Let's assume that you can use only 192.168.0.x addresses.
In order to connect to the web interface of the NAS appliance and to change its IP address, you would then have to make things so that your own computer thinks that the NAS' IP address is (for instance).
To do so, you would create a static ARP entry. You need the NAS MAC (Ethernet) address. Fortunately, it is usually available to you on a sticker or on the box. If not, there are other ways to find it, but let's assume that you have it and that it is 00:11:22:33:44:55

So on your computer, you open a command prompt. I will assume you run an instance of Windows but the commands are available to other OSes too, maybe with a different syntax.

And you anter the following:

arp -s 00:11:22:33:44:55

Now you can open your browser and connect to

And you have an access to the NAS web interface. The first thing you would do would be to change this NAS IP configuration.
Then you would remove the static ARP entry (arp -d , and Voila
vivigattConnect With a Mentor Commented:
Ooops, sorry, the syntax for EThernet addresses in Windows uses dashes - not colons :, so the command should be:
arp -s 00-11-22-33-44-55
jskfanAuthor Commented:
if our PC is in one side of Router1 and the NAS box you mentioned is in the other side of Router 2 would this command work:

arp -s 00-11-22-33-44-55

without configuring both routers to route the different subnets between each other ???
jskfanAuthor Commented:
Sorry for being persistent...

if a Gateway(Router) has a MAC address:
Most probably has the relevant IP address too:

if My PC can communicate with the Gateway(Router) then I don't think I need to use this command:
arp -s

It's kind of I still don't understand when this command(arp -s is necessary.
vivigattConnect With a Mentor Commented:
Assume that you are not the administrator of your network
Assume that you have a device which comes preconfigured with IP¨address
Assume that your computer(s) is (are all) in the subnet.
Assume that you have no right to change any of the computers IP address.
Assume that you want to connect to 

How would you do?

You would use a static ARP entry.

You must understand that, usually, using a arp static entry is a temporary solution.
There are other cases (for instance to prevent arp spoofing) but this is another story.

Now, if your PC can communicate with a host, it has a correct ARP entry for it but this is a dynamic ARP entry. Or if this host is behind one or several routers, and if your PC can communicate with this host, all the nodes on the route to the host have correct ARP entries for the next node in the route. No need for static ARP entries either.
Usually, you need static ARP entries when you cannot communicate with a host, which is still connected to the same subnet.

Some alternatives to using static ARP entries in these cases are:
- Change your PC IP address/configuration for it to be in the same subnet as the host to communicate with
- Add another (static) IP address to your PC, said IP address being in the same subnet as the host to communicate with

jskfanAuthor Commented:
thanks for the explanation
jskfanAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.