When a device needs to communicate outside its local network, it relies on a default gateway — typically the edge router — to forward traffic beyond the LAN. ARP resolves the gateway's MAC address so the device can properly frame and send packets to it.
Default Gateway Communication
Hopefully by now you have this great understanding of how one machine talks to another machine on a local area network. It does this address resolution protocol to figure out what the MAC address is, and then sends those frames onto that MAC address, and the switch will forward it to that machine. However, what happens when the machine it's trying to communicate on is on another network? Then what we're going to have to do is go through the default gateway.
What if the IP address of the machine is somewhere outside of the network, so it's a whole other network? We already know MAC addresses are used to communicate on the local LAN, but it doesn't work once you get beyond the router. So what happens is that a machine will recognize if an IP address it's trying to reach is outside the network. And if it's outside of the network, then it has something called a default gateway. The default gateway on the machine is usually the router that's sitting on the edge of your network.
The machine is going to say, if I'm trying to communicate to an IP address that's outside of my network, then what I need to do is send this information to the default gateway, and I don't know what the MAC address of the default gateway is. So then the next question is, how does it figure out the MAC address?
If you answered that it does an ARP request, you would be correct. So it has an IP address of the default gateway. It sends an ARP request out that's destined to that IP address. The ARP request gets flooded out of all connections. This router receives that ARP request, recognizes that it's an ARP request for the IP address that it has, and so it's going to reply back.
Now this machine knows the MAC address of the default gateway, and it can then form an Ethernet frame using the source MAC address of itself and the destination MAC address of the router, send it to that router, and then that router handles it as it goes externally outside of the network.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →