3

Suppose, My host is A

A(my machine) has ip address 12.

B has ip address 13

C has ip address 14

My machine has below entries in ARP cache

B => ip address 13 and its corresponding MAC address

C => ip address 14 and its corresponding MAC address

Now, B and C disconnects from LAN and when they are connected back to LAN, but this time C is assigned IP address 13 and B is assigned IP address 14

But my ARP cache has old info. What would happen if I try to ping B now ?

5

If that were to happen just as you state, then your pings would fail.

In practise if you are using DHCP to hand out addresses, the server will give you back the same address. Even if it doesn't (because you clear your DHCP server cache and reboot it, all before your ARP cache times out) you'll probably find that your B and C will send gratuitous ARPs anyway to update the ARP cache.

  • gotta explore what are gratuitous ARPs..thanx for the info – Abhinav Apr 26 '17 at 8:56
  • @Abhinav This might help: pracnet.net/arp – Eddie Apr 27 '17 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.