What is ARP
ARP (Address Resolution Protocol) is used to obtain a physical address — a MAC address — from an IP address. Devices on an IPv4 network communicate using IP addresses, but frames on an Ethernet segment are delivered using MAC addresses, so before a device can send a packet to a neighbor it needs to know which MAC address belongs to that neighbor's IP. ARP provides that translation.
Devices implement Layer 3 forwarding by maintaining ARP entries: the mapping between an IP address and the MAC address and interface through which that address can be reached. (IPv6 networks use the Neighbor Discovery Protocol for the same purpose.)
How ARP Works
Basic resolution. When a device needs to communicate with another host in the same network segment, it broadcasts an ARP request asking who owns a particular IP address. The target host answers with an ARP reply, and the device learns the mapping and records it as an ARP entry.
Dynamic and static entries. Entries learned this way are dynamic and have an aging time. After the timeout, the device sends ARP requests again to update the entry. Entries can also be bound manually. A static ARP entry ties an IP address to a MAC address, takes priority over dynamic entries, and is never aged out, which makes it useful both for preventing ARP spoofing and for hosts where dynamic learning is not possible.
ARP proxy. Normally, a host only answers ARP requests for its own address. With ARP proxy, a device that receives a request for an IP address outside the interface's own network segment can answer with its own MAC address, provided it has a route to the target. The effect is to convert Layer 2 communication into Layer 3 forwarding. Three proxy modes exist:
default: normal proxy ARP, used in general Layer 2 isolation scenarios — for example, when broadcast isolation is enabled and terminals in the same network still need to communicate. The gateway answers ARP requests with its own MAC address, so traffic between terminals is routed through the gateway.
anycast_gw: anycast gateway proxy, commonly used in VXLAN distributed-gateway scenarios, in which the gateway interface replies to terminals' ARP requests.
evpn: EVPN proxy, in which the local VTEP replies after synchronizing remote ARP information through EVPN, so requests from local terminals can be answered on behalf of remote hosts without being broadcast across the fabric.
ARP broadcast processing. The device can decide how ARP broadcast packets are handled. In copy mode, the packet is copied to the CPU for processing while continuing to be broadcast. In trap mode, the packet is sent only to the CPU and is not broadcast. Copy mode suits cases where the CPU needs to learn from ARP traffic without blocking the broadcast; trap mode reduces broadcast traffic but may cause the CPU to miss some learning.
ARP-to-host. This function converts eligible ARP and NDP entries into host routes (with a 32-bit mask), so that neighbor information is reflected in the routing table. It is used for precise route forwarding, and for route synchronization in scenarios such as EVPN, where host routes need to be advertised to other devices. Which entries are converted is controlled by policy. Policies can match by VLAN or by network segment, and are either ordinary or default. The matching order is: ordinary policies first, then default policies, and if neither matches, the entry is not converted.
Why ARP is Beneficial
Makes IP communication on Ethernet work: Without a way to resolve IP addresses to MAC addresses, devices could not deliver packets to their neighbors, so ARP underpins Layer 3 forwarding across IPv4 networks.
Self-maintaining: Dynamic learning and aging keep the table current without administrator effort. Shortening the aging time improves response to network changes, at the cost of more ARP packets.
Static binding adds protection: Fixing an IP-to-MAC mapping prevents the entry from being overwritten by spoofed ARP replies.
Proxy ARP fits isolated and virtualized networks: It lets terminals communicate through the gateway even when Layer 2 broadcast isolation is in place, and in VXLAN fabrics it lets the local VTEP answer on behalf of remote hosts.
ARP-to-host connects neighbors to routing: Turning learned neighbors into host routes enables precise forwarding and host-route advertisement in EVPN designs.
Control over CPU and broadcast load: The copy and trap options let operators balance learning against broadcast traffic.