I am learning about how ARP works and I have some questions regarding the ping network utility.
ping is used to test connectivity and reachability between devices. PCs have their own ARP table where they store IP addresses that match with corresponding MAC addresses in the LAN, right?.
I have one desktop computer and one laptop in my local network connected to a router. Here is my topology
I've decided to clean my laptop's ARP table using arp -d and tried pinging my desktop computer (192.168.1.10) to see how the ARP entries work. The entry was successfully added, however, the router's entry was added as well. Why did this happen? I've pinged my desktop computer only.
Again, I've cleared my laptop's ARP table. I did not communicate with any of the devices in my network, yet the router's ARP entry was still added. Any idea why and how did this occur? The desktop computer's entry wasn't added this time, only the router one.