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.