Two devices sharing one IP means intermittent links, jumping alarms and a line that stops without warning. This page covers the symptoms, the steps to locate the conflicting device fast, and a prevention system built on address planning, records and access control.
Symptoms: two devices alternately reachable (pinging one breaks the other), muddled sessions where device A receives data meant for B, one IP whose MAC flips between two values in the ARP table, and random alarms across the HMI. The contrast with cabling faults is diagnostic: a bad cable drops one fixed device, a conflict drops two alternately. Connect a laptop to the segment and run arp -a — one IP with two MACs confirms it. The usual origins are newly commissioned devices, maintenance laptops that picked up a colliding DHCP address, and IPs never restored after a repair.
Fast localisation. One, confirm via arp -a or the switch MAC table. Two, find the physical device: look up which switch ports learned the two MACs, or without managed switches capture ARP replies in Wireshark and identify the vendor from the MAC OUI prefix. Three, temporary recovery: disconnect the non-critical party to restore production first. Four, permanent fix: assign both devices unique planned static IPs, power-cycle to confirm, flush the switch ARP cache, and verify both links clean. Log everything: devices, old and new IPs, time and technician.
Prevention rests on three legs. Planning: allocate addresses by function (PLC and HMI on one subnet, drives on another, vision and test on a third) with 20 percent headroom, all static. Records: each device lists IP, MAC, switch port and location, updated with every modification or swap. Control: no DHCP on the production network or strictly separated DHCP ranges, maintenance laptops on an isolated VLAN, temporary devices checked against the address table before joining. Quarterly IP scans diff the live network against the records, and switch configs plus the address table are backed up monthly.
| Step | Action | Tool | Key point |
|---|---|---|---|
| Confirm conflict | Inspect ARP table | arp -a / switch MAC table | One IP with two MACs |
| Locate device | Find learning port | Managed switch | Follow port to hardware |
| Capture to identify | Filter ARP replies | Wireshark | Vendor from OUI prefix |
| Temporary recovery | Disconnect one party | Pull cable or shut port | Production first |
| Re-plan | Assign unique IPs | Address plan table | Static write, then reboot |
| Flush caches | Clear ARP entries | Switch commands | Prevent stale mappings |
| Verify | Long ping both ways | 10-minute test | No loss, no anomalies |
| Record | Document the case | Maintenance log | New IP and owner |
Applies to any TCP/IP-based industrial network. The prevention trio is a plan table, records and access control; maintenance laptops and temporary devices are the biggest variables and must be physically isolated. Always update the records after a conflict, or the next rebuild collides again.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Address management per RFC 4862 and IEC 61784 industrial networking; device integration per GB/T 5226.1. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.