Saving a DHCP reservation in the UI triggers kmwan op:6, which bounces all wired LAN ports (GL-BE9300, fw 4.10.1)

Model / firmware: GL-BE9300, firmware 4.10.1 (OpenWrt 23.05-SNAPSHOT, kernel 5.4.213)

Steps to reproduce: Go to Network → Subnet in the left sidebar, click Edit on the relevant network (e.g. Main Network), then under Address Reservation click Add and save a new MAC/IP reservation.

Symptom: Saving a DHCP static lease/reservation this way causes a brief (~8–9 second) outage for all wired LAN clients, plus a Wi-Fi client kick/re-auth. Reproducible every time, confirmed 3 times via syslog (forwarded to Loki).

Root cause (confirmed from logs):

  1. Saving a reservation restarts dnsmasq 2–3 times and the kernel re-registers br-lan (tertf: br-lan registered, add it).
  2. gl_util: kick_ap_clients_by_network: network=lan fires, kicking all Wi-Fi clients.
  3. kmwan logs config json str={ "op": 6, "data": { } } at the same moment.
  4. Immediately after, the kernel logs rtl8372-mdio 90000.mdio:1d: lan1 link down, then br-lan: port 1(eth1.1) entered blocking state → forwarding state, then ~8s later lan1 link up, speed 2500, followed shortly by lan3 link up, speed 2500.
  5. No netifd ifup/ifdown events are logged for lan at any point — this is not a normal /etc/init.d/network reload. The flap happens at the switch-chip (RTL8372N) level, below netifd.

This looks related to the known issue in this thread, where eth1.1 is br-lan’s only wired member aggregating all physical ports via the RTL8372N switch — any port state change there seems to ripple to the whole bridge. Here, though, the trigger is software (kmwan’s op:6, which fires from a DHCP UI save, not a WAN event), not a physical cable pull.

Workaround confirmed: Adding/editing the exact same reservation via SSH only (uci add dhcp host; uci set ...; uci commit dhcp; /etc/init.d/dnsmasq reload, bypassing the web UI entirely) does not trigger kmwan, tertf, the Wi-Fi kick, or any port flap — confirmed by comparing syslog from the same action done both ways.

Questions for GL.iNet:

  • Why does editing an LAN-side DHCP reservation notify kmwan (a WAN failover/multi-WAN daemon) at all?
  • Is op:6 meant to re-scan all netcells/interfaces on any config change rather than specifically WAN changes? That would explain both this report and the other kmwan thread about WAN teardown on DHCP renewal.
  • Could the UI’s “apply” path for DHCP host entries skip whatever triggers kmwan, matching what plain uci + dnsmasq reload already does safely?

Same experience as noted in Flint 2 on V4.11.0 network disconnect/reconnect but much better details and explanation. I did something slightly different than you as a workaround: I assigned the reserved ip's in the GUI and then restarted dnsmaq from the terminal. Why, cuz I'm still a bit of a simpleton :slight_smile: Anyway, ip's were properly reserved / assigned and no network restart. So it seems using "Apply" in the GUI is a full network restart and not just dnsmasq?

Hi,

Please refer to: