NETLEARN
Lesson 02Layer 2 · Data Link

ARP: Finding the Physical Address

Within a single local network, an IP address alone isn't enough. The network card needs a MAC address. ARP is the little bridge that answers the question: "Which device's MAC owns this IP?"

Layer
Layer 2 · Data Link (over IPv4)
Reference
RFC 826
Steps
5
Computer A192.168.1.10
Computer B192.168.1.20
legendrequestresponsecontrolmessage in flight

Common misunderstandings

  • ARP only works within a single LAN segment. Forwarding packets between networks is the router's job, not ARP's.

Key notes

Broadcast
An ARP request is sent to the entire LAN segment, not just the target.
Gratuitous ARP
A device sometimes announces its address so other tables get updated too.
IPv6
It doesn't use ARP, but NDP (Neighbor Discovery) over ICMPv6.
ARP spoofing
ARP replies aren't authenticated, so an attacker can impersonate the gateway.