Home › Ethernet & Layer 2 › GARP & IPv4 address conflict detection
WalkOnAWire · Ethernet & Layer 2 fundamentals

Gratuitous ARP (GARP) & Duplicate IP Detection

Watch PC-A check whether an IPv4 address is already in use, see an ARP broadcast flood through the switch, and compare a conflict-free startup with a duplicate-IP response. Inspect the exact Ethernet and ARP fields along the way.

7interactive stages
2scenarios
28ARP payload bytes
8quiz questions

Original GARP animation

Your GIF · loops automatically
Original animated GARP teaching illustration showing a PC broadcasting an ARP message through a switch to LAN hosts

Original animation supplied for this lesson. The diagram uses a GARP packet to discuss duplicate-address detection; the interactive lab below separates ARP Probe (check before use) from ARP Announcement / GARP (announce an address in use).

Important technical correction: An ARP Announcement with sender IP = target IP (such as 10.1.1.1) is not the same as the ARP Probe used for standardized pre-use conflict detection. A Probe uses sender IP 0.0.0.0 and target IP 10.1.1.1. Also, ARP is not guaranteed to receive a reply when a gratuitous announcement is sent. Both are Ethernet broadcasts on the local VLAN; routers don't normally forward that broadcast into another subnet.

Interactive packet-level lab

Choose a scenario and step through each event

One broadcast domain · VLAN 10 · four separate switch ports port 1port 2port 3port 4 Ethernet switchL2 flooding · MAC learning PC-A · New hostProposed IP: 10.1.1.1MAC ...:00:01Switch port 1 PC-B10.1.1.5Not the ownerSwitch port 2 PC-C10.1.1.6Not the ownerSwitch port 3 PC-D10.1.1.8Not the ownerSwitch port 4 PC-A checks before claiming 10.1.1.1 Select Next stage to see packet movement
Outbound ARP Probe / announcement Duplicate-IP reply (PC-C → PC-A) VLAN broadcast delivery
STAGE 1 OF 7

Follow the packet

Prepare

    What changed at this stage?

    Packet fields, switch MAC learning, and example host ARP state update alongside the selected stage.

    Packet inspector

    Live fields change with the selected stage and scenario.

    Ethernet II header
    ARP header (EtherType 0x0806)

    Switch MAC table

    VLANSource MACPort

    Learning the source MAC is different from learning an IP→MAC mapping.

    Receiver's ARP cache (example)

    IPv4MACObservation

    Host ARP cache behavior varies by operating system and policy; an unsolicited announcement may refresh an existing entry but need not create a new one.

    Probe vs GARP: the exact field differences

    FieldARP Probe (pre-use check)ARP Announcement / GARP
    Ethernet destinationff:ff:ff:ff:ff:ffff:ff:ff:ff:ff:ff
    EtherType0x0806 (ARP)0x0806 (ARP)
    OperationRequest (1)Request (1) in RFC 5227 announcement
    Sender MAC (SHA)PC-A's MACPC-A's MAC
    Sender IPv4 (SPA)0.0.0.010.1.1.1
    Target MAC (THA)00:00:00:00:00:0000:00:00:00:00:00
    Target IPv4 (TPA)10.1.1.110.1.1.1
    Main purposeCheck whether address is in useAnnounce use / refresh neighbors' mappings

    Note: Gratuitous ARP may also be implemented as an unsolicited ARP Reply. The interactive example uses an RFC 5227 ARP Announcement (Request) and a Probe (Request).

    Understand the behavior

    Layer 2 · Switch

    Why does the switch flood it?

    ARP requests use Ethernet destination ff:ff:ff:ff:ff:ff. The switch learns the incoming source MAC on port 1 and floods the broadcast out other forwarding ports in VLAN 10. It does not determine who owns 10.1.1.1.

    IPv4 address conflict detection

    What proves an address is occupied?

    During probing, a valid ARP message from a different MAC asserting the proposed IPv4 address signals a conflict. An owner may respond, and the new host must not proceed to claim that address in the RFC 5227 flow.

    Announcement · GARP

    Why announce afterward?

    After successful probing, the new owner broadcasts an ARP Announcement to tell neighbors which MAC owns the IP. It's not a request to resolve a remote host. An unsolicited reply is not guaranteed or required.

    Check your understanding

    8 questions with explanations

    Question 1 of 8Score: 0

    ← Back to Ethernet & Layer 2 · All labs · WalkOnAWire home