mullane.info

A cable, a Wi-Fi fallback, and a desktop arguing with itself over ARP

2026-12-04 · network

I restarted desktom on Wednesday evening and the wired connection just didn’t come back. NetworkManager listed it as “unavailable,” which isn’t a state I see often, and since we had renamed the UniFi controller (from ap-controller to l2ctl) about an hour earlier, I assumed the two were related. I said as much to the agent, and added that it probably couldn’t reach the controller from where desktom now was, which turned out to be true for reasons I hadn’t thought about.

The first check settled the question of blame. The interface was up as far as Linux was concerned, but it had no carrier: no link at all, not a link on the wrong VLAN. The driver (Aquantia’s AQC113C, the onboard 10 GbE on this board) loaded cleanly, the PCIe link was fine, and reloading the module did nothing. The rename had only touched names, a certificate and a URL in our tooling, and nothing that renames a controller can unplug a cable. The more interesting part was in the previous boot’s kernel log, which the agent could read once I’d given it sudo: on 2026-11-28 the link had dropped and come back nineteen times, and from that evening on it had been running at 100 Mb/s instead of 10 Gb/s. A link that falls back to 100 Mb/s is usually a link with a bad pair (100BASE-TX only needs two of the four), and I had been running on it for four days without noticing. In my defense, 100 Mb/s is plenty for a terminal.

While it was looking, I asked something that had been nagging me: if the switches and APs had been told to talk to the controller by a name that no longer existed, would they still remember which VLAN each port was on after the port went down and came back? The answer is that they would. The controller pushes each device its whole configuration and the device keeps it, so a switch that loses its controller just shows up as “disconnected” and keeps forwarding exactly as it was. The VLAN belongs to the port, and nothing gets asked again when the link comes back. (As it happens, we had kept the old name around as an alias anyway, and the adoption name still pointed at the right place.) The Wi-Fi VLANs don’t come from the controller at all; the APs ask OPNsense’s RADIUS server directly. Which is also why desktom’s Wi-Fi had landed in the quarantine VLAN: its Wi-Fi card had never been reserved, so RADIUS did what it’s supposed to do with an unknown device.

The port light was blinking every five seconds or so, which suggested the switch was trying. I re-seated both ends of the cable and the link came straight back at 10 GbE, with the right address and the right route.

Since the Wi-Fi was clearly going to be my fallback whether I planned for it or not, I had the agent reserve it in my own zone. Our device.py does that in one go (DHCP, DNS, RADIUS, AdGuard, then kicks the client so it rejoins in its new VLAN), and it did. Then I asked for two changes: give it the wired address plus 32, the same pattern as my son’s machine’s second interface, and let it into the couple of places that only accept administration from my desktop, so the fallback would actually be useful when the cable gives out. Then I went to bed.

This is where it got a bit odd. After the address change, the Wi-Fi kept ending up back in the quarantine VLAN. Each time it was kicked, it would join one of the weaker APs in my zone and work fine for a few seconds, then roam to the AP upstairs (the one it had been sitting on, unreserved, for the previous half hour) and land in quarantine again. RADIUS was answering with the right VLAN every time; the agent tested it directly, and my laptop was on the same radio in the same zone without any trouble. So the AP was holding on to something about that one client from before it was reserved, and a kick didn’t clear it. Blocking the client in UniFi for fifteen seconds and unblocking it did. Over the next two days the RADIUS log showed 187 accepts, all in the right VLAN. It mostly avoids the upstairs AP now, for whatever reason, which is a little like the device holding a grudge.

The agent also caught itself out twice along the way, and I think that’s worth recording. Its first reachability test used curl with a telnet:// URL, which stays connected until it times out, so success and failure looked identical. And its first SSH test from the Wi-Fi address used ssh -b, which only picks the source address; with both interfaces in the same subnet, the packets went out the wired port anyway. Binding to the device itself (SO_BINDTODEVICE, or BindInterface in ssh) fixed both, and everything worked from the Wi-Fi as intended.

Two days later, when I checked in, there was one more thing. UniFi had logged three IP conflicts between desktom’s two cards, each claiming the other’s address. That’s the classic ARP flux problem: by default Linux answers ARP for any of its addresses on any interface, so with two cards in one subnet, either card might answer for either address. It’s mostly harmless while both links are up, and exactly the wrong behavior when one of them goes down. Two sysctls fix it (arp_ignore=1 so each card only answers for its own address, arp_announce=2 so it announces with its own address too), and they now live in desktom’s repo and its setup script.

And the cable. Since the re-seat on Wednesday it has dropped and come back about 66 times, in bursts, always at full speed afterward. So, a new cable it is. At least the fallback works now.