I’ve been struggling with wireless IOT clients (Sonoff and Shelly devices) on a wAP getting disassociated with reason (8).
I’ve read a whole bunch of old threads which led me to looking at the DHCP assignment.
I’m using a Unifi UDM-Pro as the DHCP server, and the wAP is connected to the DHCP server via a pair of Cubes.
I went ahead and set up a DHCP on the wAP to confirm and it looks like the disassocs have been eliminated.
But, now I have 2 DHCP servers (I split the pool of IPs between them).
I tried to set the interface on the wAP’s DHCP server to wifi4 and then learned that a DHCP server can only be assigned a master interface.
It seems all my interfaces on the wAP are slaves. And only the bridge appears to be a master.
I am looking for the simplest way to set this up. I found instructions on getting up a second bridge on the wAP with it’s own DHCP server and a different IP range, but I’d rather find a simpler solution.
I saw in another thread that someone changed their DHCP server options (1, 6, 12) and it fixed it, but I don’t understand how that did it. I can add DHCP options to the UDM-Pro if needed.
When you bridge two networks via WiFi, it is important that the WiFi link works in 4-address mode.
When you are (forced to) using wifiwave2 this is not possible at the moment, and using a DHCP server at the other end of the link will not work.
(it would be possible to configure an IP link with an EoIP interface on top of it, and use that to bridge the networks)
When you can still use the old “wireless” driver it is possible but you need to configure it correctly (ap-bridge and station-bridge modes)
I tried creating firewall rules on the cubes and the wAP to drop all packets with src or dst ports of 67 or 68 and it seems the dhcp requests and offers still get through.