DHCP pool limits

In this page https://openwrt.org/docs/guide-user/base-system/dhcp for the configuration for DHCP pool it reads:

100 is the offset from the network address, in the default configuration this would mean start leasing addresses from 192.168.1.100
150 is the maximum number of addresses that may be leased, in the default configuration this would mean leasing addresses up to 192.168.1.250

This doesn't really add up. If the first IP is .100 and they are 150 IPs then the last one should be .249.

So is that the case? Or is the last one .250, in which case we need to reword the Wiki to explain that the 150 is an offset of the first IP rather then the total number of IPs.

1 Like

Yep.

# grep -e ^dhcp-range= /tmp/etc/dnsmasq.*
dhcp-range=set:lan,192.168.1.100,192.168.1.249,255.255.255.0,12h

Fixed.

2 Likes

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