Specifying dhcp range

Hi,

In the file '/etc/config/dhcp' I have:

config dhcp 'dmz'
        option start '100'
        option leasetime '12h'
        option limit '150'
        option interface 'dmz'

From what I understand the IP addresses should be dished out in the range '100' to '150'.
Assuming that the above is correct, I get an IP outside of that range, any idea why?

In dnsmasq I would do 'dhcp-range=172.20.130.100,172.20.130.150', how can I do that in OpenWRT 18.06?

"start" is the start address.
"limit" is how many addresses to issue.

So, 100/150 will go from 100 to 249.

If you want to issue addresses from 100 to 150, you would set "start" to 100 and "limit" to 51.

Lovely, thank you.

You're welcome!