ARP, the Address Resolution Protocol, maps an IPv4 address to the MAC address of a device on the same local network. A host checks its ARP cache, broadcasts an ARP request asking who has a target IP address, receives a unicast reply with that device's MAC address, and caches the result so it can build Ethernet frames correctly.
Key takeaways
- ARP translates IPv4 addresses into MAC addresses so devices on the same local network can deliver frames.
- ARP has no authentication, so forged replies can poison caches and redirect traffic in an ARP spoofing attack.
- Dynamic ARP Inspection, DHCP snooping, segmentation, and encryption are the practical defenses against ARP spoofing.
Every time your laptop opens a web page, it first has to solve a small puzzle: it knows the IP address it wants to reach, but Ethernet needs a hardware address to deliver the frame. ARP solves that puzzle in milliseconds, silently, thousands of times a day.
What is ARP?
ARP, the Address Resolution Protocol, maps an IPv4 address to the MAC address of a device on the same local network. It lets a host build Ethernet frames that reach the right physical device.
Think of IP addresses as postal addresses and MAC addresses as house numbers on one street. The postal address tells you which street to visit, but the delivery driver still needs the exact house. ARP asks the street, in effect, "who lives at this address?" and records the answer.
ARP was defined in 1982 by RFC 826, Internet Standard 37, written by David C. Plummer. It is still used by virtually every IPv4 device, from laptops and phones to printers and industrial controllers. In IPv6 networks, its job is done by the Neighbor Discovery Protocol instead.
ARP only works inside one local network segment. ARP traffic is never routed, so a router or VLAN boundary stops it. That limit is important: it also means ARP attacks can only come from a device already on your local network.
How does ARP work?
ARP works in four steps: check the cache, broadcast a request, receive a unicast reply, and cache the result. The whole exchange usually takes less than a millisecond on a healthy network.
1. Check the ARP cache
Your device keeps an ARP cache, a small table of IP-to-MAC mappings it has learned recently. If the destination IP is already there, it uses that MAC address and skips the rest. Entries expire after a period that varies by operating system, so stale mappings are eventually relearned.
2. Broadcast an ARP request
If there is no cache entry, your device sends an ARP request to the broadcast MAC address, FF:FF:FF:FF:FF:FF. Every device on the local segment receives it. The request asks, in effect, "who has this IP address?" and includes the sender's own IP and MAC address.
3. Receive a unicast ARP reply
Only the device that owns the requested IP address replies, and it replies directly to the sender, not to the whole network. The reply carries its MAC address. Other devices ignore the request.
4. Cache the result and send the frame
The sender stores the new mapping in its ARP cache, builds an Ethernet frame addressed to that MAC address, and sends the packet. The next packet to the same destination needs no new ARP exchange.
When the destination is on a different network, your device does not ARP for the destination itself. It ARPs for its default gateway instead, and the gateway takes over routing. You can check your own mappings with our What is my IP tool to see the address your network gives you.
What does an ARP packet look like?
An ARP packet is small and simple. For IPv4 over Ethernet it is 28 bytes, carried directly in an Ethernet frame with EtherType 0x0806, which identifies the frame as ARP rather than IP.
| Field | Size | Value for IPv4 over Ethernet |
|---|---|---|
| Hardware type | 2 bytes | 1 (Ethernet) |
| Protocol type | 2 bytes | 0x0800 (IPv4) |
| Hardware address length | 1 byte | 6 (MAC addresses are 6 bytes) |
| Protocol address length | 1 byte | 4 (IPv4 addresses are 4 bytes) |
| Opcode | 2 bytes | 1 = request, 2 = reply |
| Sender hardware address | 6 bytes | Sender MAC address |
| Sender protocol address | 4 bytes | Sender IPv4 address |
| Target hardware address | 6 bytes | Empty in a request, filled in a reply |
| Target protocol address | 4 bytes | Target IPv4 address |
The opcode is the field that tells a receiver what kind of message it is: 1 for a request, 2 for a reply. There is no field for authentication, encryption, or a signature. That absence is the root of every ARP security problem.
ARP also has related forms. Reverse ARP asks for an IP address when you know a MAC address, and proxy ARP lets a router answer ARP requests on behalf of devices on another network. Both are rare in modern home and office networks, and BlueCat's ARP explainer gives a clear summary of how they fit together.
ARP vs DNS: what is the difference?
ARP and DNS both translate one kind of address into another, but they work at different layers and different scopes. Confusing them is common, because both are invisible until they break.
| ARP | DNS | |
|---|---|---|
| Translates | IPv4 address to MAC address | Domain name to IP address |
| Scope | One local network segment only | Global, across the internet |
| Layer | Layer 2 / Layer 3 boundary | Application layer |
| Method | Local broadcast request | Query to a DNS server |
| Authentication | None | None by default; DNSSEC adds signing |
In practice, the two work in sequence. When you visit a website, DNS first turns the domain name into an IP address. Then, if that address is local, ARP turns it into a MAC address. If it is remote, ARP turns the gateway's IP address into a MAC address. Our DNS lookup tool shows the first half of that chain for any domain.
What is the ARP cache and how do you check it?
The ARP cache is a table your operating system keeps of IP-to-MAC mappings it has learned. It avoids repeating a broadcast for every packet, which keeps local networks fast and quiet.
To view it, open a terminal or command prompt and run arp -a. On Windows, macOS, and Linux, that command lists each IP address, its MAC address, and whether the entry was learned dynamically or set statically. A normal home network shows your router, your other devices, and little else.
Entries are temporary. When an entry expires, your device sends a fresh ARP request the next time it needs that address. You can clear the cache with arp -d on Windows or by restarting the network interface, which forces fresh resolution. That is a useful first step when a device suddenly cannot reach the local network.
Watch for odd entries: two IP addresses sharing one MAC address, or your gateway's IP address pointing to a MAC address you do not recognize. Either can be a sign of ARP spoofing, which is covered below.
What is ARP spoofing?
ARP spoofing, also called ARP cache poisoning, is an attack in which a device on your local network sends forged ARP replies. Those replies link the attacker's MAC address to another device's IP address, usually the default gateway.
Victims update their ARP caches with the false mapping and start sending their traffic to the attacker. The attacker can then read, modify, or block that traffic before forwarding it on, which puts them in the middle of the connection. MITRE ATT&CK tracks this as Adversary-in-the-Middle: ARP Cache Poisoning (T1557.002).
The attack works because ARP trusts any reply it receives. RFC 826 defines no way to verify who sent a reply, and a host will update an existing cache entry from an unsolicited ARP message. An attacker does not need to break encryption or guess a password to start.
ARP spoofing is a local attack only. The attacker must already be on the same broadcast domain, which means they are on your Wi-Fi, plugged into your switch, or have already compromised a device on the network. That is why it is a bigger risk on shared networks, such as offices, hotels, and public Wi-Fi, than on a well-secured home network.
Once in the middle, an attacker can capture unencrypted traffic, steal session cookies, redirect you to fake login pages, or simply cut your connection. Encrypted traffic, such as HTTPS, stays unreadable, but the attacker can still see which sites you visit and can try to downgrade or block connections.
How do you detect ARP spoofing?
Detecting ARP spoofing is mostly about spotting mappings that should not exist. On a small network, a quick look at the ARP cache is often enough to raise the alarm.
- Duplicate MAC addresses: several IP addresses, including the gateway, all point to one MAC address.
- Changing gateway MAC: the gateway's MAC address changes without any router replacement or restart.
- Unsolicited ARP replies: your monitoring sees ARP replies that no device asked for, especially gratuitous ARP messages.
- New devices claiming old IPs: a device you do not recognize starts answering for an IP address that belongs to someone else.
- Traffic symptoms: sudden slowness, repeated disconnections, or certificate warnings on sites that normally work fine.
On larger networks, use a network monitor or intrusion detection system that watches ARP traffic and alerts on anomalies. Tools such as Wireshark can show ARP traffic in real time, and many managed switches log ARP events. If you suspect spoofing, compare the gateway MAC in your cache with the MAC printed on the router itself.
How do you prevent ARP spoofing?
There is no patch for ARP itself, because the protocol was never designed with authentication. Prevention means moving the trust decision somewhere ARP cannot reach: the switch, the network design, and encryption.
Enable Dynamic ARP Inspection
Dynamic ARP Inspection, or DAI, is the strongest control on a managed network. The switch checks every ARP packet on untrusted ports against a trusted table of IP-to-MAC bindings and drops any packet that does not match. A forged reply never reaches its victim.
Turn on DHCP snooping first
DAI needs that trusted table, and DHCP snooping builds it by watching legitimate DHCP exchanges. Enable DHCP snooping before DAI, and add static bindings for devices with fixed IP addresses, or DAI will block their legitimate ARP traffic too.
Segment the network
Split a flat network into VLANs so that guests, IoT devices, and staff are on separate broadcast domains. ARP spoofing cannot cross a router, so segmentation limits how many devices one attacker can reach. Our guide to securing your Wi-Fi covers the home-network version of this.
Use static ARP entries for critical devices
For a small number of critical hosts, such as the gateway or a server, you can set static ARP entries that never change. That stops spoofing for those hosts, but it is hard to manage at scale, so use it selectively.
Finally, encrypt your traffic. HTTPS, VPNs, and encrypted DNS mean that even if an attacker does get in the middle, the traffic they capture is unreadable. Encryption does not stop ARP spoofing, but it removes most of its value.
What are common ARP problems?
Most ARP problems are not attacks at all. They are stale caches, duplicate addresses, or a device that has changed its network card and kept its old IP address.
- Stale cache entries: a device changes its MAC address, but other devices keep the old mapping until it expires. Clearing the cache or waiting for expiry fixes it.
- Duplicate IP addresses: two devices claim the same IP address, and ARP replies flip between them. Check DHCP scope and static assignments.
- ARP flooding: a faulty or malicious device sends huge numbers of ARP requests, which can slow a network. Managed switches can rate-limit ARP traffic.
- Proxy ARP confusion: a router answers ARP requests for other networks, which can mask routing problems and make troubleshooting harder.
If a device can reach some local devices but not others, or if it works after you clear the ARP cache and then fails again, start your troubleshooting at the ARP table. It is one of the fastest checks you can run.
The bottom line
ARP is a simple, fast, and completely trusting protocol. It maps IPv4 addresses to MAC addresses on your local network, and it does that job well. Its weakness is that it believes any reply it hears.
On a home network, a strong Wi-Fi password and up-to-date devices go a long way. On a business network, add managed switches with Dynamic ARP Inspection and DHCP snooping, segment your network, and encrypt everything you can. You can start by checking what your own network exposes with the free DNS lookup tool.
Frequently asked questions
What does ARP stand for?
ARP stands for Address Resolution Protocol. It resolves an IPv4 address to the MAC address of a device on the same local network, so Ethernet frames can be addressed correctly.
What is ARP used for?
ARP is used whenever a device needs to send an IPv4 packet to another device on the same subnet. It finds the destination MAC address, or the MAC address of the default gateway when the destination is on another network.
Is ARP a Layer 2 or Layer 3 protocol?
ARP sits at the boundary between Layer 2 and Layer 3. It carries Layer 3 IPv4 addresses, but it runs directly over Ethernet frames at Layer 2 and is never routed between networks.
Does ARP work with IPv6?
No. IPv6 does not use ARP. The Neighbor Discovery Protocol, defined in RFC 4861, provides the equivalent address-resolution function for IPv6 networks.
What is ARP spoofing?
ARP spoofing is an attack in which a device on the local network sends forged ARP replies that link its own MAC address to another device's IP address, usually the gateway. Victims then send traffic to the attacker instead of the real destination.
How do I see the ARP cache on my computer?
On Windows, macOS, and Linux, open a terminal or command prompt and run arp -a. It lists the IP addresses your device has recently resolved and the MAC address stored for each one.
What is a gratuitous ARP?
A gratuitous ARP is an ARP reply or request sent without being asked for, usually to announce that a device now owns an IP address. It is legitimate for detecting duplicate addresses, but attackers also use it to poison caches.
How can I protect my network from ARP spoofing?
Use managed switches with Dynamic ARP Inspection and DHCP snooping, segment the network, use static ARP entries for critical devices, and encrypt traffic with TLS so intercepted traffic stays unreadable.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against RFC 826, Cisco ARP documentation, and MITRE ATT&CK T1557.002.
How we write and fact-check →