For eleven days, channel 5 on a sixteen-camera warehouse site went black for forty to ninety seconds, came back by itself, and went black again. Four or five times an hour, all day, never at night. The switch had reserved 25.5 W on that port, the camera was drawing about 5 W, and the port had delivered class 4 power without one renegotiation since the day it went in. There was no power fault on that run. There was never going to be one.
The camera was sharing its address with a second camera. Not on a spreadsheet — on the wire, on the same VLAN, both powered, both answering. The second one was a spare that had been left patched to port 16 after a firmware test in October, sitting on a shelf in the same rack, still drawing PoE. Both units were on 192.168.1.64. Whichever one answered the recorder's ARP request last kept the video session, and the recorder rebuilt that entry every few minutes without telling anybody. I had spent two of those eleven days on a firmware downgrade the camera did not need before I opened an ARP table and watched the MAC address change under my eyes.
The port was perfect. That was the clue.
Here is what the port counters on the switch said during the failure: 1 Gbps, full duplex, class 4, 5.1 W, zero CRC errors over ten minutes, no link drops in the log. Everything on that page was healthy, because everything on that page describes layer 1. The camera was powered the whole time. It was also streaming the whole time — just not to the recorder.
That combination is the dividing line in this whole family of faults. If the port had fallen back to 100 Mbps, or the CRC counters were climbing, I would have been in the territory I wrote about in when the port is live and the link is not, chasing a pair, a staple, a wet plug. A clean 1 Gbps link with a clean error count and a channel that still flaps is not a cable problem. It is an addressing problem, and no amount of re-terminating will touch it.
The word that misleads everybody is "offline". On a recorder, offline is a statement about the last frame it received, not about voltage. A camera can be sitting at 48 V, warm, IR lit, and be perfectly offline from the recorder's point of view. I have watched three technicians replace a camera for this, and one of them replaced it twice.
Two devices, one address, and a race nobody is refereeing
IPv4 has no ownership. When the recorder wants to send to 192.168.1.64, it broadcasts "who has .64" and takes the first answer it gets. There is no authentication on that reply, no lease, no registry. If two devices both believe they are .64, both answer, and the recorder caches whichever reply arrived last. One MAC per IP address. That is the whole rule.
So the session goes to camera A. Video plays. Somewhere between thirty seconds and a few minutes later the entry ages out and gets rebuilt, and this time camera B answers first. Now the recorder's TCP stream to .64 is arriving at a device that has no such socket open. There is no polite timeout involved: the wrong camera receives a segment for a connection it never had, finds no listener, and answers with a reset. The channel dies in one round trip. Then the next refresh lands on camera A again and the picture comes back. The recorder logs a camera that keeps dropping, and the operator concludes the camera is flaky.
Two details make this recognisable in the field.
The first is that ping stays clean. I have run 500 packets at a camera in this state and lost zero, with round times flicking between 0.7 and 2.4 ms. That is not evidence of health. It is evidence that both devices hold the address and both answer ICMP happily. The video dies because a stateful TCP session cannot survive a peer that changes identity mid-stream. Ping is stateless and does not care.
The second is that rebooting fixes it, for a while. A camera that comes up sends a gratuitous ARP — an unsolicited announcement that says, in effect, I am .64, here is my MAC. Every device in the broadcast domain updates its cache. That is why the site's own workaround worked: power-cycle the flapping camera, get four good hours, then it starts again. The reboot did not repair anything. It just won the last round of a race that keeps restarting.
There is a third tell I only learned to look for later. If the two devices have different passwords, the recorder's channel list starts showing authentication errors on alternate attempts, because the credential that works on one camera is being offered to the other. A channel that fails login every second try is a duplicate address until proven otherwise.
Four ways a duplicate gets onto a camera VLAN
I have stopped treating this as rare. On small and mid-size sites I check for it before I check anything expensive.
1. The factory address nobody changed. A large share of cameras leave the factory on 192.168.1.64. It is the default on one of the two biggest vendors and installers copy it forward because the first camera "just worked". Then a second unit arrives — a spare, an RMA replacement, a bench test — and it boots to the same address on the same switch. This is the version that hides for weeks, because both devices are legitimately installed and nobody thinks of a camera as a network device with a setting.
2. The DHCP pool that overlaps the static range. Cameras get .100 to .199 by hand. The router's pool is also .100 to .199, because whoever set it up picked round numbers. Everything works until a phone or a laptop joins the warehouse Wi-Fi and the router hands it .137, which belongs to a camera on the east wall. Now the fault appears at 08:20 when staff arrive and disappears at 17:30. I have seen this diagnosed as a heat problem twice.
3. The cloned configuration. A replacement camera restored from the dead unit's backup comes up with the dead unit's address. Usually the old one is already off the wall and this ends there. Occasionally it is not — it is on a bench, or on a short patch cord behind the rack, still powered, and now you have two.
4. A laptop with a static address in the camera range. Discovery tools, ONVIF scanners, and the integrator's own machine. The fault only exists when that person is on site, which is exactly when nobody is looking for it.
Every one of these is a numbering mistake, so the fix looks like numbering discipline. It is worth getting the block layout right once:
| Range | Example | Why it holds |
|---|---|---|
| Gateway and recorder | .1 and .10 | Fixed, documented, never inside a pool |
| DHCP pool | .50 to .99 | Phones, laptops, temporary gear only |
| Camera statics | .150 to .240 | Outside the pool with a gap on both sides |
Two holes in that table. The gap matters more than the width: a pool ending at .99 and statics starting at .150 leaves room for someone's ad-hoc .120 without an immediate collision. And the table only binds people who read it. The camera on the shelf does not.
Finding the other device in ten minutes
This is the procedure I use now, in order, and it has not failed me yet. It assumes a laptop on the same VLAN and a managed switch, which is the case on most sites where somebody is paid to care.
- Get the address from the recorder, not the label. Open the channel settings and read the IP the recorder is actually using. The label on the camera was correct when it was installed and has been wrong since the first renumbering.
- Read the ARP entry twice. From the laptop, look up that address in the ARP table (
arp -aon Windows,ip neighon Linux). Note the MAC. Wait sixty seconds, look again. If the MAC changed, you are done — that is a duplicate address, confirmed, no theory required. - Clear the entry and probe. Delete the ARP row, ping four packets, read the table again. Check the TTL as a weak fingerprint: 64 usually means a Linux-based camera, 128 a Windows-based one. Two different TTLs on the same address is conclusive. Two identical TTLs proves nothing.
- Ask the switch which port each MAC is on. Look up both MACs in the MAC address table. You will get two different ports, and those two ports lead to two physical devices. This is the step that turns an abstraction into a walk to the rack.
- If the switch is managed, shut one port instead of unplugging it. Disabling PoE on the suspect port is reversible in five seconds and tells you immediately which channel recovers. Do not pull twelve patch cords: every replug costs that camera a full boot, which is forty-five seconds minimum on a PTZ that runs a self-test.
- Check the DHCP lease table. If the address appears as a lease and as a static configuration, the lease entry names the MAC that stole it, and often the device name. That is the fastest confession available.
- Read the switch log for address moves. If you see the same MAC reported on two ports seconds apart, you have a different problem — duplicate MAC, not duplicate IP. The fix is not a renumbering.
- Write both MACs and both ports down before changing anything. The second device is usually powered from a port you did not know was in use.
Duplicate IP, duplicate MAC, broken pair: three different calls
These three produce the same complaint — a camera that keeps dropping — and they need three different responses. The quickest way to separate them is to stop looking at the camera and read what the infrastructure already recorded.
| Fault | Port counters | Address tables | Fix |
|---|---|---|---|
| Duplicate IP | Clean, full speed, zero CRC | MAC table stable, ARP entry alternates | Renumber one device |
| Duplicate MAC | Clean, but link may bounce | Same MAC on two ports, logged as a move | Remove or replace one unit |
| Broken pair | CRC climbing, speed may fall to 100 | Both tables stable | Re-terminate, then re-pull |
Duplicate MAC is the rarer and nastier one. It comes from a cloned configuration image, a refurbished board that never got its own address burned in, or a batch of cheap units that shipped with the same one. The switch sees one MAC arriving on two ports and keeps moving its table entry. If spanning tree is on, it may block a port and take a whole segment down. Nothing about that looks like an addressing mistake until you read the MAC table.
I keep the three cases in one place because the misdiagnosis is expensive in a specific way: a broken pair gets a new camera, a duplicate IP gets a new cable run, and neither fixes anything. If I write anything down at handover, it is the pair of MAC addresses and the port each one sits on — the same discipline behind the six measurements I record before sign-off. Not because paperwork is virtuous, but because eleven days of flapping is what happens when nobody can answer "which MAC was on port 16".
Questions I get asked about this
Can a duplicate address damage the switch or the camera?
No. Power delivery happens below all of this and does not read addresses. The port keeps its class, the camera keeps its 48 V, and the only casualty is the session. The damage is commercial: replacement parts, callbacks, and a client who now believes the system is unreliable.
Why does rebooting the camera make it work for a few hours?
Because booting sends a gratuitous ARP that claims the address with the new MAC, and every cache in the broadcast domain takes it. You have won one round. The next cache refresh can go either way, which is why the fault returns on a schedule that looks random but is not.
Ping is clean. Can it still be a conflict?
Yes, and this is the most common reason people rule it out. ICMP is answered by whichever device holds the address, so both cameras reply and you see zero loss. Watch a stateful stream instead: RTSP, or the recorder's own channel state. That is where a changing peer identity shows up.
Will putting the cameras on their own VLAN stop this?
It stops the office laptop and the staff phone, which is most of the real-world cases. It does not stop two cameras on that VLAN from colliding with each other. A VLAN shrinks the population that can take an address; it does not enforce uniqueness inside it.
Should cameras be static or DHCP?
Reservations by MAC are better than statics on sites where cameras get replaced, because a new unit inherits the address and nobody edits a list at 7 a.m. The catch: a camera with a static address ignores DHCP entirely, so the two cannot be mixed on one unit.
The fix I actually recommend is the boring one: cameras on their own VLAN with a small, documented address block, a DHCP pool that does not touch it, and one rule that survives staff turnover — nothing goes on a camera switch without an address already on the list. That last rule is the one that would have caught my warehouse. The spare on port 16 was not a network device in anyone's mental model, which is why it sat there for eleven days.
The cases that still puzzle me are the ones where the ARP entry alternates on a cycle you can time with a stopwatch and the two devices are in different buildings on the same flat network. If you have one of those, the MAC table and the lease table together usually name the intruder in under a minute. I would like to know what the cycle length turned out to be — mine was a little over four minutes, and I still do not have a good explanation for the number.