ARP Address Resolution
Visualize ARP cache lookup, broadcast requests, unicast replies, gateway resolution, and spoofing risk
ARP Address Resolution Workbench
Watch how a host turns an IPv4 destination into the Ethernet destination MAC address it must put on the wire. Compare a cache hit, a local cache miss, a default-gateway lookup, and an ARP spoofing attempt.
What
ARP maps an IPv4 address on the local link to a 48-bit Ethernet MAC address.
Why
IP decides where the packet should go. Ethernet still needs the next-hop MAC address before a frame can leave the host.
Try First
Use Step Event on Local cache miss. Notice the request is broadcast, but the reply is unicast.
Notice
For an off-subnet IP, the host does not ARP for the remote server. It ARPs for the default gateway.
Ethernet link view
Host A needs to send to the sensor, but it does not yet know the sensor MAC address.
Packet fields
ARP cache
Current explanation
ARP starts by asking whether the destination is on the same subnet. Host A is 192.168.10.10/24. A destination inside 192.168.10.0/24 is local; anything else goes to the default gateway 192.168.10.1.1. Subnet decision
Decide whether to send directly or to the default gateway.2. Cache lookup
Use a valid cache entry if one exists and has not expired.3. Request and reply
Broadcast the request, then learn from the unicast reply.4. Send frame
Place the learned next-hop MAC in the Ethernet destination field.Learning Support
Minimum Background
IPv4 addresses name endpoints for routing. MAC addresses name Ethernet interfaces on one local link.
Mental Model
ARP is a local question: "Who owns this IPv4 address on this link, and what MAC should I use next?"
Common Mistake
Do not ARP for a remote cloud host. ARP only finds the next-hop MAC on the local network.
Quick Reference
ARP Request
Ethernet destination is ff:ff:ff:ff:ff:ff. The target MAC field is unknown.
ARP Reply
Usually unicast to the requester. It carries the target IP to MAC mapping.
Cache Entry
Dynamic entries expire. Static entries stay fixed until an administrator changes them.
Gateway Case
For off-subnet traffic, the resolved IP is the default gateway, not the remote server.
Spoofing Risk
ARP does not authenticate replies. A host can be tricked into caching a false mapping.
Useful Commands
arp -a or ip neigh shows learned neighbor mappings on common systems.