New devices not getting IP DHCP while already device connect around 1000 devices

Hi, im having problems with DHCP in a site with 1500+ devices, im using a openwrt OpenWrt 22.03.2 r19803-9a599fee93 x86_64 on a Intel xeon E-2224G pc as a router and using dnsmasq-full. it same like on this post [SOLVED] Guest devices not getting IP DHCP at around 400 devices. but when dhcp lease has reached 1000 users, then no leases left appears in dnsmasq-dhcp logread, I've added the option dhcp_lease_max '5000' option in dnsmasq's dhcp config, but it's still stuck at 1000 users and notify "no lease left" still going, CPU usage is also still low, below 30%,

You can see below for the use of the DHCP lease

this is my etc/config/dhcp

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option rebind_protection '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option localservice '1'
	option allservers '1'
	option nonegcache '1'
	option filter_aaaa '1'
	option dnsforwardmax '1000000'
	option cachesize '10000'
	option dhcp_lease_max '5000'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

config dhcp 'vlan_local'
	option interface 'vlan_local'
	option start '2'
	option limit '254'
	option leasetime '1h'

config dhcp 'vlan_200'
	option interface 'vlan_200'
	option start '2'
	option limit '2000'
	option leasetime '30m'

config dhcp 'vlan_100'
	option interface 'vlan_100'
	option start '2'
	option limit '500'
	option leasetime '30m'

this interface for local device :

config interface 'vlan_200'
	option proto 'static'
	option device 'br-lan.200'
	option ipaddr '172.16.16.1'
	option netmask '255.255.248.0'
	option delegate '0'

config interface 'vlan_100'
	option proto 'static'
	option device 'br-lan.100'
	option ipaddr '172.17.16.1'
	option netmask '255.255.254.0'
	option delegate '0'

Can you help me? thank you.

Remove the underscores:
[SOLVED] Guest devices not getting IP DHCP at around 400 devices - #10 by vgaetera

Confirm your runtime configuration:

grep -e dhcp-lease-max /tmp/etc/dnsmasq.conf.*
6 Likes

OK, I've fixed the typo, from dhcp-lease-max to dhcpleasemax

I'm still waiting for the DHCP lease status, because it's starting to get quiet again for users, I'll let you know tomorrow when busy time user.


thank you

2 Likes

up this morning
dnsmasq running smooth, and user still get DHCP server over 1k

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.