MAC address vs IP address: What’s the difference?
MAC address vs IP address: One is a unique hardware identifier, while the other identifies a device's network connection. Learn more with BlueCat.
Read moreAddress Resolution Protocol (ARP) is a network protocol that maps IPv4 addresses to MAC addresses on local network segments, enabling hosts to build Ethernet frames by resolving destination addresses through cached lookups, broadcast requests, and unicast replies. Organizations depend on ARP for nearly every IPv4 Ethernet network, but face operational challenges including duplicate IP addresses causing cache flips, stale entries after device replacement, and ARP spoofing attacks that lack authentication mechanisms. Administrators troubleshoot ARP issues using commands like arp -a to inspect caches and arp -d to clear stale entries, while implementing defenses such as dynamic ARP inspection, port security, and static entries to protect critical infrastructure from address resolution failures and traffic interception.
A host that wants to send an IPv4 packet to another device on its own subnet must know the destination MAC address before it can build an Ethernet frame. ARP supplies that mapping through a broadcast request and a unicast reply.
When the destination is on another subnet, the host resolves the MAC address of its default gateway instead of the final destination. Administrators can inspect the cache with the arp -a command on most systems, and delete entries with arp -d. Commands such as show arp serve the same purpose on network devices. IPv6 does not use ARP; it relies on Neighbor Discovery Protocol.
Two devices claiming the same IPv4 address cause the ARP cache on other hosts to flip between two MAC addresses. Users see intermittent connectivity, and operating systems often log a conflict warning.
After a NIC swap or a failover, hosts may keep the old MAC address until the entry times out. Traffic goes to a device that no longer answers, and clearing the entry on the affected host usually restores connectivity.
ARP has no authentication, so any host on the segment can send replies that claim another device's IP address. An attacker can use this to intercept or redirect traffic, and the usual signs are a gateway IP mapped to an unexpected MAC address.
A layer 2 loop or a very large flat segment can multiply ARP broadcasts until devices spend noticeable resources processing them. Switch CPU load rises and applications slow down across the whole VLAN.
A host with a mask that is too wide sends ARP requests for addresses that are actually on another network. Nothing answers, so the entry shows as incomplete and the destination is unreachable.