When the Only DHCP Server Goes Down, the Switch Falls Back to a Factory Address
A fleet-wide outage traced back to the lab's single DHCP server. A managed switch rebooted while it was down, found nothing to lease from, and came up on its default fallback address, unreachable from the production network.

Key Architectural Takeaways
- A single DHCP server is a single point of failure for anything that reboots while it is down.
- A switch on its fallback address is alive but unreachable from production; reach it from a directly connected machine.
- Write down incident progress as it happens, and say plainly what is unresolved.
The symptom
On one morning a managed switch, a laptop-class server, a router, a backup server, a DNS host and the DHCP server itself were all unreachable. The firewall, both hypervisors, the primary backup server, several service containers and the jump host stayed up throughout.
The connection
The lab's only DHCP server, Kea, had replaced the firewall's DHCP earlier that month. It went down, then came back clean about midday: static address correct, DNS VIP reachable, gateway pinging, Kea active. While it was down, no device on the LAN could get a fresh lease, so any device that rebooted in that window had nowhere to lease from.
The switch theory
The switch was frozen in the controller as reporting a default address on an unrelated subnet, zero ports, and a last_seen that did not advance, even through a soft reboot and a cold power cycle. Our theory, well supported but not proven by a clean recovery: that address is a UniFi device's DHCP-failure fallback, not a factory-reset artefact. The switch was rebooted more than once while the DHCP server was down, found nothing to lease from, and fell back.
What we did, in order:
- Read the controller's cached state through its API: stale and frozen.
- Reached the fallback address directly from a laptop on that subnet. A ping answered, so the device was alive. The HTTPS port refused, which is expected, because UniFi switches have no web UI and only offer SSH.
- The first SSH attempt reset mid-handshake while the switch finished booting. The retry a minute later gave a real password prompt.
- The factory default credentials were rejected. That was a good sign: the switch had kept its adopted credentials and had not fully reset.
- We recovered the real management credentials from the controller's own settings API, rather than guessing.
What we did not finish
We wrote this up as not resolved. The DHCP server was confirmed recovered, but the switch had not been confirmed back on its real address when the notes were taken, and several other hosts had not yet been rechecked. An earlier theory about cable and port health was superseded, though not disproven. We are explicit about this because the progress existed only in a session that had been lost and restarted several times, and it was at real risk of being lost.
What changed afterwards
A single DHCP server was the structural lesson. We later built DHCP high availability with failover; see Kea DHCP HA failover and the phantom unacked clients.
Takeaway
Map your dependencies by asking what each device needs at boot. A network that can run but cannot restart is one reboot from an outage.