[Dnsmasq-discuss] dhcp-lease-max is only for DHCPv4?

imnozi at gmail.com imnozi at gmail.com
Tue May 23 04:23:46 UTC 2023


Other thoughts (maybe dumb, but could be easily overlooked):
  - An easy-ish thing to check in the source: is the counter wide enough
    (16-, 32- or 64-bits)?
  - What happens when max is set to 4, 16, etc.?
    o Is there a maximum before the limit fails to limit?
    o Does it always assign max+1 leases?
  - Do each of the clients have different MAC addresses?
The answers could yield a clue.

N

On Tue, 23 May 2023 00:05:08 +0100
Simon Kelley <simon at thekelleys.org.uk> wrote:

> There's a possible difference between the number of clients and the 
> number of DHCP leases, since leases can expire to be deleted by the client.
> 
> Are you saying that the number of simultaneous DHCP leases increases 
> without bound, or that the 513th client gets a lease? Have you checked 
> the number of leases in the dnsmasq.leases file?
> 
> 
> Simon.
> 
> On 22/05/2023 12:18, Linyih Teng wrote:
> > Hello,
> > 
> > I'm using dnsmasq2.89 and testing the maximum lease count of the DHCPv6 
> > server with the *dhcp-lease-max* option.
> > 
> > For the testing, I'm using below configuration:
> > 
> >     *dhcp-lease-max* = 512
> >     *dhcp-range*=tag:pool0,2022::1,2022::1f:ffff:ffff:fffe,64,120m
> >     tag-if=set:pool0,tag:intfv0
> > 
> > 
> > However, when the number of clients reaches the maximum number, the 
> > server still provides IPs to clients. Is this the expected behavior of 
> > DHCPv6?
> > 
> > 
> > Best Regards,
> > Lin
> > 
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss  
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list