INTERNET FUNDAMENTALSAI-REVIEWED

How does ARP find a local device's MAC address?

Useful first: Routers and routing · optional, not a requirement

Choose your depth

Stay with the essentials, or look closer.

Simple explanation
2 min read · estimate

YOUR GOALExplain why an IPv4 next hop needs a local link-layer address, and separate ARP from address assignment and name lookup.

Finding the next local recipient

One local delivery needs two kinds of address

For ordinary IPv4 traffic over Ethernet, the IP packet names a destination while the surrounding Ethernet frame needs a local recipient's MAC address. ARP helps find that MAC address from an IPv4 address.

Think of asking which desk handles the next handoff inside an office. The analogy describes a local delivery step, not a directory of every device on the internet.

[1]

The recipient may be your router

A printer on your own subnet can be the next recipient. For a destination on another network, the next recipient is usually a router on your local link. Routing chooses that next hop; ARP resolves its local address.

Your laptop does not need the distant website server's MAC address to send the first frame to its gateway.

[1] [2]

Three different questions

DHCP can supply your IP address and other configuration. DNS can resolve a hostname to an IP address. ARP answers a local IPv4-to-link-address question.

These examples concern IPv4 over Ethernet. IPv6 uses Neighbor Discovery for link-layer address resolution rather than ARP.

[1] [4] [5] [6]
THE IDEA TO KEEP

Choose the next-hop IP first; ARP can then help find its local MAC address.

ONE THING TO WATCH OUT FOR

ARP gives my laptop an IP address when it joins a network.

ARP resolves local address mappings. Address configuration is a separate job, which DHCP can perform.

A QUICK CHECK, NOT A TEST
What does ARP help an IPv4 laptop discover on an Ethernet link?
Show the explanation

The MAC address associated with a local next-hop IP address. ARP resolves the local link-layer mapping. DNS name lookup and DHCP address allocation are different operations.

Progress is saved only in this browser.

KEEP EXPLORINGRouters and routing
Was this explanation clear?
Report a mistake by email
Basic explanation
3 min read · estimate

YOUR GOALTrace a normal Ethernet ARP exchange and identify which address is resolved for local and remote IPv4 destinations.

Following a request, reply and frame

Select the next-hop IP

Assume a laptop is 192.168.10.20/24, its default gateway is 192.168.10.1, and there are no overriding routes or proxy ARP devices. A printer at 192.168.10.50 is on the same subnet, so the laptop resolves the printer's address.

For a packet to 10.20.30.40, the laptop instead resolves 192.168.10.1, the gateway selected by its route.

[1] [2]

Ask the link, receive a reply

With no usable cached mapping for the gateway, the laptop broadcasts an ARP request on the Ethernet link: who has 192.168.10.1? The request includes the laptop's sender IP and MAC address.

In this normal exchange the gateway replies directly to the requester with its mapping, for example 192.168.10.1 → 02:00:00:00:00:01. These are illustrative addresses, not a packet capture.

[1]

Use the mapping, then keep it current

The laptop can now put the remote IP packet in an Ethernet frame addressed to the gateway:

IPv4 destination:     10.20.30.40
Ethernet destination: 02:00:00:00:00:01

A usable ARP cache entry avoids a new exchange for every packet. Implementations must handle stale entries; there is no single cache lifetime for all systems. Resolving the gateway still does not prove that later hops or the remote application will work.

[1] [2]
THE IDEA TO KEEP

For a remote IP destination, distinguish the IP packet's final destination from the Ethernet frame's next recipient.

ONE THING TO WATCH OUT FOR

To contact a remote server, my laptop broadcasts an ARP request for that server across the internet.

In the illustrated routed network, the laptop resolves its local gateway. The remote IP remains the IP packet's destination.

A QUICK CHECK, NOT A TEST
In this example, which IP does the laptop resolve before sending toward 10.20.30.40 when the needed cache entry is missing?
Show the explanation

192.168.10.1, because that is the chosen local gateway. The destination is outside 192.168.10.0/24 and the stated route uses 192.168.10.1. ARP resolves that next hop; it does not replace the remote destination IP.

Progress is saved only in this browser.

KEEP EXPLORINGRouters and routing
Was this explanation clear?
Report a mistake by email
Advanced explanation
3 min read · estimate

YOUR GOALDistinguish ordinary address resolution from IPv4 conflict detection and explain why an ARP mapping is not authenticated identity.

Reading probes, announcements and trust limits

A probe asks before using an address

RFC 5227 defines an ARP Probe as a broadcast ARP Request with sender IP 0.0.0.0 and target IP set to the candidate address. The sender hardware field still contains the sending interface's MAC address.

For candidate 192.168.10.60, these fields ask whether that address is already in use without asserting that the sender currently owns it. Probing checks a proposed configuration; it does not allocate an address.

[3] [5]

An announcement is a different statement

An RFC 5227 ARP Announcement is also a broadcast ARP Request, but both sender IP and target IP contain the address being announced. For 192.168.10.60, both fields therefore hold that value.

Address conflict detection also watches for conflicts during later operation. A probe and an announcement are different steps; neither is a guarantee that no conflict can ever appear.

[3]

A mapping is not proof of identity

Ordinary ARP does not authenticate a sender's address claim. Fraudulent ARP messages can mislead devices about which hardware address belongs to an IP address. Conflict detection inherits this limitation.

When investigating an unexpected mapping, distinguish an accidental address conflict from a potentially false claim. Treat an ARP entry as delivery information, not proof that a device is authorized or trustworthy.

[3]
THE IDEA TO KEEP

Read the sender and target fields to understand the message's purpose, and keep address resolution separate from trust.

ONE THING TO WATCH OUT FOR

An ARP reply proves that the responding device is authorized to use the claimed IP address.

ARP supplies address information without authenticating ownership. Conflict detection does not turn that claim into an identity check.

A QUICK CHECK, NOT A TEST
Which message is an RFC 5227 probe for candidate address 192.168.10.60?
Show the explanation

A broadcast ARP Request with sender IP 0.0.0.0 and target IP 192.168.10.60. A probe uses the all-zero sender IP to test the candidate without claiming it. Equal sender and target IP fields describe an announcement; DHCP allocation is separate.

Progress is saved only in this browser.

KEEP EXPLORINGRouters and routing
Was this explanation clear?
Report a mistake by email
GO STRAIGHT TO THE SOURCE

Keep asking. Check the details.

Source-checked using AI (OpenAI Codex) on . The checks covered sources, examples, and quizzes for this article version.

No human review is claimed. AI review can miss errors; check the original sources below.

  1. RFC 826 — Ethernet Address Resolution Protocol
  2. RFC 1122 — ARP caches and local next-hop selection
  3. RFC 5227 — IPv4 address probing, announcements and conflicts
  4. RFC 4861 — Neighbor Discovery for IPv6
  5. RFC 2131 — DHCP configuration and address allocation
  6. Cloudflare — What is DNS?
How explanations are prepared