networking layer2 ai_generated true

arp: duplicate address detected for 192.168.1.x

ID: networking/arp-conflict

Also available as: JSON · Markdown
88%Fix Rate
90%Confidence
45Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

Two hosts on the same LAN segment have been assigned the same IP address, causing ARP table conflicts. Traffic is intermittently routed to the wrong host, causing connection failures and packet loss.

generic

Workarounds

  1. 92% success Identify and reassign the conflicting IP on one of the hosts
    1. Run arping -D -I eth0 192.168.1.x to confirm the duplicate
    2. Check the ARP table: ip neigh show | grep 192.168.1.x
    3. Identify both MAC addresses and trace them to physical hosts
    4. Assign a unique IP to one of the conflicting hosts
    5. Verify with arping -D -I eth0 NEW_IP to confirm no further conflicts
  2. 88% success Enable DHCP snooping or Dynamic ARP Inspection on the switch to prevent future conflicts
    1. On managed switches, enable DHCP snooping on the VLAN
    2. Enable Dynamic ARP Inspection (DAI) to validate ARP packets
    3. Ensure DHCP server is connected to a trusted port
    4. Test by attempting to manually assign a conflicting IP — the switch should block it

Dead Ends

Common approaches that don't work:

  1. Flush the ARP cache on the affected host without resolving the duplicate IP assignment 85% fail

    Flushing the ARP cache is only a temporary fix; the conflicting device will re-announce its MAC address for the same IP within seconds, repopulating the cache with incorrect entries.

  2. Restart the networking service or interface hoping the conflict resolves itself 80% fail

    Bringing the interface down and up re-sends a gratuitous ARP, but the other host still holds the same IP. The conflict immediately returns once both interfaces are up.

Error Chain

Leads to:
Preceded by:
Frequently confused with: