Routing – Why is the target IP address always the default gateway

arpipv4mac addressrouterrouting

I am currently researching ARP packets using Wireshark and have found that when I ping a new computer asking for the MAC address that corresponds with the known IP address, my target IP address in my request ARP packet is always my default gateway.

Why is this?

Best Answer

ARP is used to find an ethernet MAC address belonging to an IPv4 address on your local LAN.

If you are sending packets to something that is not on your local LAN (according to the information that your PC has) your PC will send it to the default gateway, who is assumed to know what to do with it.

So, if you send something to an non-LAN destination your PC needs the MAC address of the default gateway, which it will send an ARP request for if it doesn't have it cached yet.

It is not possible to see MAC addresses of machines not on your local LAN.