[Dnsmasq-discuss] DHCP range for "private" Wi-Fi addresses

Buck Horn buckhorn at weibsvolk.org
Thu Jan 2 06:30:20 UTC 2025


On 02.01.25 02:13, Nick Kirsch wrote:
> I'm interested in seeing if I can assign all of the "private" W-Fi mac
> addresses (found enabled on Apple devices) to a different IP range on my
> network, while the rest of the DHCP traffic goes to the "public" range.
>
> I took a guess at the syntax:
>
> dhcp-range=set:private_wifi,192.168.20.100,192.168.20.200,255.255.255.0,12h

I guess you should use tag instead of set above - quoting from dnsmasq's
documentation
 > Note that for --dhcp-range both tag:<tag> and set:<tag> are allowed,
 > to both select the range in use based on (eg) --dhcp-host, and
 > to affect the options sent, based on the range selected.

But I wonder why you'd have to deal with randomised MAC addresses at all.
Is there a reason why you won't simply disable MAC address randomisation
on your devices for your wifi home network?

Kind regards,
     Buck





More information about the Dnsmasq-discuss mailing list