What is ARP (Address Resolution Protocol)?

ARP (Address Resolution Protocol) is a network protocol used to map an IP address to a MAC (Media Access Control) address within a local network (LAN). It operates at Layer 2 (Data Link Layer) of the OSI model and is essential for devices to communicate over Ethernet and Wi-Fi networks.

image.png

image.png

How ARP Works

When a device wants to communicate with another device on the same network, it follows these steps:

  1. ARP Request:
  2. ARP Reply:
  3. Caching:

Types of ARP

  1. Normal ARP – Resolves IP addresses to MAC addresses in the local network.
  2. Gratuitous ARP – A device announces its IP-MAC mapping to update other devices (used in failover scenarios or IP conflict detection).
  3. Proxy ARP – A router responds to an ARP request on behalf of another device in a different subnet.
  4. Inverse ARP (InARP) – Used in ATM or Frame Relay networks to map MAC addresses to IP addresses.

ARP Spoofing (Poisoning) Attack

Commands to View ARP Table