01-26-2018 03:14 AM - edited 03-08-2019 01:34 PM
Hi everyone,
Quick question: when a host received an ARP request for itself (ARP Target IP address = local IP) will the host install an ARP entry using the Sender MAC address / Sender IP address in the ARP message?
I have seen some OS learning ARP entries this way and my question is: what is the correct behavior?
RFC says:
....
?Am I the target protocol address?
Yes:
If Merge_flag is false, add the triplet <protocol type,
sender protocol address, sender hardware address> to
the translation table.
...
I think this means it should install an ARP entry upon receive of an ARP request where Target IP address = local IP
Any comments on this are much appreciated.
Regards,
Matthieu
Solved! Go to Solution.
01-26-2018 03:21 PM
Hi Matthieu,
Quick question: when a host received an ARP request for itself (ARP Target IP address = local IP) will the host install an ARP entry using the Sender MAC address / Sender IP address in the ARP message?
Yes, definitely it should. The point is simple: It allows both hosts to learn about their IP/MAC bindings in a single ARP transaction. Otherwise, two independent ARP transactions would need to take place.
I think this means it should install an ARP entry upon receive of an ARP request where Target IP address = local IP
That is correct. However, the complete algorithm in RFC 826 actually updates the receiving host's ARP cache in two cases:
Would this help a little? Feel welcome to ask further!
Best regards,
Peter
01-26-2018 03:21 PM
Hi Matthieu,
Quick question: when a host received an ARP request for itself (ARP Target IP address = local IP) will the host install an ARP entry using the Sender MAC address / Sender IP address in the ARP message?
Yes, definitely it should. The point is simple: It allows both hosts to learn about their IP/MAC bindings in a single ARP transaction. Otherwise, two independent ARP transactions would need to take place.
I think this means it should install an ARP entry upon receive of an ARP request where Target IP address = local IP
That is correct. However, the complete algorithm in RFC 826 actually updates the receiving host's ARP cache in two cases:
Would this help a little? Feel welcome to ask further!
Best regards,
Peter
01-27-2018 04:29 AM
thanks Peter that answers my question perfectly!
Regards,
Matthieu
12-18-2023 06:52 PM - edited 12-18-2023 06:52 PM
Didn't check the RFC, but in general.
In Peter, we trust.
-BenBen
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide