[Dnsmasq-discuss] DHCP leases on multiple interfaces with different subnet mask

john doe johndoe65534 at mail.com
Tue May 1 07:57:58 BST 2018


On 5/1/2018 5:44 AM, Tom Hung wrote:
> Greetings,
> 
>   
> 
> I have an issue about set multiple interfaces with different subnet mask.
> 
> I set three interfaces, br-lan, br-VLAN4 and br-VLAN5. br-VLAN5 subnet mask
> is 255.0.0.0, others are 255.255.255.0
> 
> When there is no DHCP leases, DHCP Client can get correct DHCP OFFER from
> different interfaces.
> 
> But if client get DHCP OFFER from br-VLAN5, and then switch back to br-lan.
> It will get incorrect result.
> 
> What I expect is it can be obtained in original br-lan dhcp-range. Do I miss
> anything?
> 
>   
> 
> Here is my dnsmasq.conf and log, you can see last DHCP OFFER from br-lan is
> incorrect.
> 
> ======================================================
> 
> localise-queries
> 
> dhcp-range=lan,192.168.10.101,192.168.10.199,255.255.255.0,12h
> 
> dhcp-range=VLAN4,192.168.4.101,192.168.4.199,255.255.255.0,12h
> 

In most cases tags need to be set before they can be used. Are the tags 
set anywhere else in your configuration?
If no, the following example could help:

dhcp-range=set:<TAG-NAME>,...

-- 
John Doe



More information about the Dnsmasq-discuss mailing list