Closed francio87 closed 1 week ago
I think we can ignore the size of the DHCP pool.
Or handle the value 0 as a special case.
A default clean installation of version 8 doesn't set dhcpleasemax
.
Testing image: 23.05.3-ns.1.0.1-12-g33ff78b
Confirm, fixed.
Tested with the same export file, the value dhcpleasemax
it's not present anymore :
root@ns79-mig:~# uci show dhcp |grep dhcpleasemax
root@ns79-mig:~#
After migrating from version 7.9 to version 8, if there were no DHCP servers enabled in version 7, the DHCP server in version 8 does not assign IP addresses even if enabled.
Steps to reproduce
Expected behavior
DHCP server give out IP address to clients
Actual behavior
The server recive the DHCP and after an initial offer it reply with a NAK and the message
no leases left
Looking at the uci configuration this option get set under the dhcp configuration :
option dhcpleasemax '0'
The
export.tar.gz
file, has inside thedhcp.json
file :Removing the option
dhcpleasemax
solve the issue: