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.

1 Like

Lovely, thank you.

2 Likes

You're welcome!

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