# Proxy ARP Explained

**URL:** <https://forum.networklessons.com/t/proxy-arp-explained/1099>\
**Category:** Lessons Discussion\
**Created:** [December 26, 2016, 10:49pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099 "2016-12-26T22:49:27Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![shivam0367](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shivam0367/32/2540_2.png) [@shivam0367](https://forum.networklessons.com/u/shivam0367)\
**Post date:** [March 29, 2020, 10:46am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/41 "2020-03-29T10:46:04Z")

</div>

Hi Laz / Rene Sir ,  
The Title networking is in plain english is absolute right , whatever you mentioned about the concept is easily understand and mind blowing , **A big salute to your team .**

Thanku so much Sir again

Regards  
Shivam Chahal

---

<div class="post-metadata">

**Author:** ![shivam0367](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shivam0367/32/2540_2.png) [@shivam0367](https://forum.networklessons.com/u/shivam0367)\
**Post date:** [March 29, 2020, 9:35pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/42 "2020-03-29T21:35:32Z")

</div>

Hi Lagz Sir ,

I have a quick question above mentioned topic ,kindly share your point of view in this .

Suppose , we have two host which are in different network and connected with a router via switch , and provide default gateway on each of the interface of router .

My question is if we disabled the proxy arp on router , then how host know about the destination mac address if H1 ping to H2 as in case of lan where arp normally works .

As i studied thoroughly in different network arp is not performed because router block broadcast domain , arp request and Arp reply is not possible , it is only possible within the same sub -net means arp request reach to default gateway and provide the mac address itself then how can i get it the destination mac of particular host if we ping from the device which are in different network .

Regards  
Shivam Chahal

---

<div class="post-metadata">

**Author:** ![shivam0367](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shivam0367/32/2540_2.png) [@shivam0367](https://forum.networklessons.com/u/shivam0367)\
**Post date:** [March 29, 2020, 10:19pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/43 "2020-03-29T22:19:23Z")

</div>

Hi Laz Sir

Please confirm while doing show arp command on both H1 and H2 Host , Hardware address of router is same , but the interface ip address is different , one is server interface ip and other is router interface ip . What was the reason behind this ?

Regards  
Shivam Chahal

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 30, 2020, 10:31am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/44 "2020-03-30T10:31:20Z")

</div>

Hello Shivam

In order to respond to your question, take a look at the following topology, as you described it in your post:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/9/9bf85d9f27efa73ce4d1a49fdcba98c5c3ea4f4c.png)  
Let’s say Host 1 wants to send a packet to Host 2. Let’s also assume that proxy ARP is disabled on the router. The process is as follows:

1. Host 1 will encapsulate the transport layer segment into an IP packet with the destination IP of **10.10.10.20**.
2. This IP packet is then encapsulated into a frame. The source MAC address is that of Host 1. It must determine the destination MAC **using the destination IP**.
3. Now Host 1 knows that the destination IP **is in a different subnet**. It knows this by looking at its own address and subnet mask. This means that the Host must forward the frame **to the configured default gateway**.
4. Therefore it will do an ARP request **not** of the destination IP, but **of the default gateway IP**. It will obtain its MAC address, place it in the destination MAC address field of the Ethernet header, and send it.
5. The router will receive this packet, read the destination MAC, decapsulate it, and read the destination IP.
6. It will look up the destination IP of **10.10.20.10** on the routing table, and find that it is within the subnet on its directly connected interface.
7. it will re-encapsulate the IP packet in a new Ethernet frame, with its own source MAC address.
8. The router will send out a new ARP request for the destination IP of **10.10.20.10** , and Host 2 will respond to this.
9. The router will receive the MAC address of Host 2, populate the destination MAC field, and send the frame to Host 2
10. Host 2 will receive it and process it normally.

So you see, in this case, it is the **routing functionality of the router** that gets the packet to its destination. All ARP requests in this scenario **remain within the network segment** and are not forwarded.

Note that even if Proxy ARP were enabled on the router, the above procedure would still take place. Proxy ARP would only be used if the Host 1 had no default gateway configured. Only then would it send an ARP request asking for the MAC address of **10.10.20.0**. If it has a default gateway configured, **it will prefer using that** , and sending an ARP request for the IP of the default gateway.

I hope this has been helpful! Stay healthy and safe!

Laz

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 30, 2020, 10:44am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/45 "2020-03-30T10:44:13Z")

</div>

Hello Shivam

If I understood correctly, what you are saying is that the ARP table has the same MAC address for both the router as well as the other host? If that is the case, then this is to be expected. Take a look at this topology again.

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/5/56e38dd1bc8e0dbb0df13b16488a6ce6aaa28be4.png)  
Let’s assume this time that the hosts are not configured with default gateways, and that the router has proxy ARP enabled.

If Host 1 pings Host 2, Proxy ARP will be used to get the Layer 2 addressing information to achieve connectivity. This means that from Host 1 will have the following entries in the ARP table:

```
C:\Users\user>arp -a

Interface: 10.10.10.10 --- 0xd
  Internet Address Physical Address Type
  10.10.10.1 aa-aa-aa-aa-aa-aa dynamic
  10.10.20.10 aa-aa-aa-aa-aa-aa dynamic

```

You would see that both the router Interface, and Host 2 correspond to the same MAC address. This is because one of those (the router) has been provided via ARP, while the other (Host2) has been provided via Proxy ARP. But both are the same, because Proxy ARP returns the MAC address of the local gateway as that corresponding to the destination IP address.

Note also, that Proxy ARP will always give you an IP address in a different subnet than your own.

I hope this has been helpful! Stay safe and healthy!

Laz

---

<div class="post-metadata">

**Author:** ![shivam0367](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shivam0367/32/2540_2.png) [@shivam0367](https://forum.networklessons.com/u/shivam0367)\
**Post date:** [March 30, 2020, 8:35pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/46 "2020-03-30T20:35:41Z")

</div>

Hi lag Sir ,  
I understand your point but I need one help .I want to configure above topology in gns3 .So that I can find major difference practically .What are the change has been done there .  
Theoretically I understand dere is default routing configured to host and disabled proxy arp .  
Please share the configuration and whireshrk snap of packet capture .

Rgds  
Shivam Chaudhary

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 31, 2020, 5:33am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/47 "2020-03-31T05:33:04Z")

</div>

Hello Shivam

The lesson here provides a good and comprehensive description of how Proxy ARP works. You can duplicate this lesson in GNS3, and include the debugs to see Proxy ARP in action. You can also attempt to remove the default gateways from the hosts, and see the results as well.

You can find the detailed configurations in the lesson itself.

I hope this has been helpful! Stay safe and healthy!

Laz

---

<div class="post-metadata">

**Author:** ![shivam0367](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shivam0367/32/2540_2.png) [@shivam0367](https://forum.networklessons.com/u/shivam0367)\
**Post date:** [March 31, 2020, 9:16pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/48 "2020-03-31T21:16:57Z")

</div>

Hi Laz /Rene Sir ,

Appolozie but I post here again ,I understand this concept and I aware how it work but as I know real packet flow where I don’t give proxy arp it create confusion in this .  
Please help and clear my doubt again .

1)How can a host s differentiate whether they are in same subnet (NETWORK ) or different subnet(NETWORK) if they are provide with a classless or classfull Ip .Kindly give me some examples and how to check and verify it .Please share the process.

2 ) As I know about default gateway ,it is used if a host want to reach to another host which are in different network .I want to know why default gateway is provide to host in case of proxy arp not given to proxy router .

3).What happen in both cases if default gateway is provided to router not to host

Router (Proxy enabled ) Case 1.  
Router (Proxy disabled ) Case 2.

This question created confusion while doing lab .Hope you understand it .

I invested day and time to understand this topic but may be something is lack due to above question pending .

Please help in here .

Thanks  
Shivam Chahal.

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [April 1, 2020, 7:30am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/49 "2020-04-01T07:30:12Z")

</div>

Hello Shivam

No need to apologize for posting again, that’s what we’re here for!

> [@shivam0367](#):
>
> 1)How can a host s differentiate whether they are in same subnet (NETWORK ) or different subnet(NETWORK) if they are provide with a classless or classfull Ip .Kindly give me some examples and how to check and verify it .Please share the process.

A host “knows” if a destination IP is on the same subnet as itself, or on a different subnet because it knows its own subnet mask. If my PC has an IP address of 192.168.55.24 and a subnet mask of 255.255.255.0 then it can calculate ([using binary ANDing](https://networklessons.com/subnetting/subnetting-in-binary)) the whole range of IP addresses that belong to the same subnet. So if my PC wants to send something to 192.168.55.99, it will first AND its own IP address, and then the IP address of the destination like so:

192.168.55.24 AND 255.255.255.0 = 192.168.55.0  
192.168.55.99 AND 255.255.255.0 = 192.168.55.0

The result is the same network address, which means the destination is on the same subnet. So any communication with this destination takes place without the default gateway.

> [@shivam0367](#):
>
> I want to know why default gateway is provide to host in case of proxy arp not given to proxy router .

In the lesson, H2 is given the following IP address parameters:

IP address: 10.1.1.2  
Subnet mask: 255.0.0.0  
Gateway: 10.1.1.254

Now when H2 pings the server at 10.2.2.100, it does the AND check like shown above:

10.1.1.2 AND 255.0.0.0 = 10.0.0.0  
10.2.2.100 AND 255.0.0.0 = 10.0.0.0

So the network address is the same, so it doesn’t try to use the default gateway, because it believes that the destination is on the same subnet. So it sends an ARP request not for the default gateway, but for the destination IP. The result is the local router, which knows that the destination IP is actually in another subnet served by another one of its interfaces, sends out the proxy ARP.

> [@shivam0367](#):
>
> 3).What happen in both cases if default gateway is provided to router not to host

In the lesson, H1 uses the default gateway because it determines that the destination IP is not in the same subnet, while H2 uses ARP (which turns into proxy ARP by the router) because it believes, based on its own subnet mask, that the destination IP is in the same subnet. If proxy ARP was disabled, then H1 would successfully communicate with the server, but H2 would fail.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![rajeev.vf745](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rajeev.vf745](https://forum.networklessons.com/u/rajeev.vf745)\
**Post date:** [February 26, 2021, 9:41pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/50 "2021-02-26T21:41:26Z")

</div>

Hi Rene,

Is it possible to monitor and manage an L2 switch with out configuring default-gateway or default-route for the management Vlan. For example, If I have monitoring tool like solarwinds on a different network, Will proxy arp on the management interface on the router or management VLAN SVI on a L3 switch respond with mac-address information for SNMP, SSH or TELNET traffic?

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [March 1, 2021, 6:55am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/51 "2021-03-01T06:55:16Z")

</div>

Hello Rajeev

Yes, you can do this, but you have to configure the subnet mask of the IP address of the device to include the IP address of the monitoring tool. This way, the device will believe that the monitoring tool is on the same subnet (even though it isn’t) and will not send traffic to the default gateway, but will send out an ARP request for the MAC address information. The router on the network will receive this and using proxy ARP, should relay the request.

You can find out more detailed information about this at the following Cisco documentation:

> **[Understand Proxy ARP](https://www.cisco.com/c/en/us/support/docs/ip/dynamic-address-allocation-resolution/13718-5.html#howdoesproxyarpwork)**
>
> This document describes how Proxy ARP helps machines on a subnet reach remote subnets without the need to configure routing or a default gateway.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![ajinkyahivare](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/ajinkyahivare/32/1963_2.png) [@ajinkyahivare](https://forum.networklessons.com/u/ajinkyahivare)\
**Post date:** [April 12, 2021, 6:22am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/52 "2021-04-12T06:22:15Z")

</div>

Please explain gratuitous arp. It’s significance and uses.

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [April 13, 2021, 7:57am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/53 "2021-04-13T07:57:55Z")

</div>

Hello Ajinkya

Take a look at this post:

> [@ARP (Address Resolution Protocol) explained](https://forum.networklessons.com/t/arp-address-resolution-protocol-explained/864/73):
>
> Hello Juan It is true that ARP entries by default are kept in the ARP table for four hours. As you mentioned very correctly, this can be a problem if you install a new PC with the same IP address. Other cases where this could be a problem is if a server has a backup NIC card and the first fails, the backup will have the same IP address but a different MAC address. In order to solve these issues, we use something called a Gratuitous ARP. Gratuitous ARP is a sort of “advance notification”, it…

If you have any further questions, feel free to ask!

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![harishussain123](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/h/ee59a6/32.png) [@harishussain123](https://forum.networklessons.com/u/harishussain123)\
**Post date:** [April 26, 2021, 6:28pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/54 "2021-04-26T18:28:34Z")

</div>

I have tested in Packet Tracer, I am able to ping a 10.2.2.100 which is hops away with proxy-arp. Router0 has a static route for the 10.2.2.0 subnet. What I Understood is router will route to any destination if it has a route in the routing table. But the Above comments say that it will work only for the directly connected subnet.! Please elaborate.

 ![PacketTracer7_6LuZ7lARef](https://cdn-forum.networklessons.com/uploads/default/original/2X/a/abb1c8c4b861f5f6e6a1a8680fd4140ad1f39999.png)

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [April 28, 2021, 6:43am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/55 "2021-04-28T06:43:27Z")

</div>

Hello Haris

From my understanding, you have proxy-arp enabled on both routers, and you have a static route on router0 that points to the 10.2.2.0/24 subnet, correct? I tried recreating that in packet tracer, but I was unable to get the ping to work. The ping reached PC1 but on its way back, it failed when it reached Router1. Can you elaborate more on your configuration so that we can help you further?

Looking forward to hearing from you…

Laz

---

<div class="post-metadata">

**Author:** ![harishussain123](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/h/ee59a6/32.png) [@harishussain123](https://forum.networklessons.com/u/harishussain123)\
**Post date:** [May 2, 2021, 7:45am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/56 "2021-05-02T07:45:08Z")

</div>

On Router1 I have again static route pointing to Router R0. Is it supposed to work without static Routing? The Fact that PC1 is sending traffic to R0 without Default GW being set should prove that R0 is acting as proxy ARP. For the reverse traffic, we need to add a static route on R1 for it to work, Just like we added on R0 for forwarding taraffice. Please elaborate if my understanding is wrong.

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [May 6, 2021, 5:49am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/57 "2021-05-06T05:49:15Z")

</div>

Hello Haris

Yes, that change did indeed cause the ping to start working. And yes, your understanding is correct.

If you use the Simulation feature on Packet tracer, you will be able to follow the proxy ARP process as well. You will find that PC0 sends an ARP to router0, and router0 finds that it has no ARP entry for that IP address, so it, in turn, sends an ARP request to Router1. Router 1 in turn will send an ARP request to PC1. Once this is done, the ICMP packet can traverse the path from end to end.

Take a look at this event list from packet tracer.

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/1/14d3820f518cc04d6d3753a93d0f914b68390300.png)  
You can see that there are three sets of three ARP events.

- The first is an ARP request from PC0 to Router0
- The second is an ARP request from Router0 to Router1
- The third is an ARP request from Router1 to PC1

So Proxy ARP will take place over multiple hops only if you have static routing that will allow the return journey.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![vadim.yakovenko](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/vadim.yakovenko/32/1791_2.png) [@vadim.yakovenko](https://forum.networklessons.com/u/vadim.yakovenko)\
**Post date:** [April 4, 2023, 2:49pm UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/58 "2023-04-04T14:49:51Z")

</div>

Hello.  
Should it be FastEthernet0/3 ?

 ![image](https://forum.networklessons.com/uploads/default/original/2X/0/018a07ca7202c5819ee10f06e7e7bb1b8cb677dc.png)

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [April 6, 2023, 5:16am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/59 "2023-04-06T05:16:20Z")

</div>

Hello Vadim

You are correct. It seems that the diagram is incorrect because Rene refers to Fa0/1 throughout the lesson. The diagram should read Fa0/1 instead of Fa0/3 for R1. I will let Rene know to make the change. Thanks for pointing that out!

Laz

---

<div class="post-metadata">

**Author:** ![davidilles](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/davidilles/32/9686_2.png) [@davidilles](https://forum.networklessons.com/u/davidilles)\
**Post date:** [June 1, 2024, 10:29am UTC](https://forum.networklessons.com/t/proxy-arp-explained/1099/60 "2024-06-01T10:29:57Z")

</div>

Hello, everyone.

So is it safe to say that depending on Proxy ARP is only done in poor or misconfigured network designs? I often see proxy ARP being explained with directly-connected static routes or mismatched subnet masks.

And please, what exactly is Local Proxy ARP? Is it the same as Proxy ARP?

Thank you.

David

[Previous page](https://forum.networklessons.com/t/proxy-arp-explained/1099.md?page=2)

[Next page](https://forum.networklessons.com/t/proxy-arp-explained/1099.md?page=4)
