Help setting DHCP IP address pool

Hi All,

I am trying to configure my router to assign DHCP IP addresses in a specific range. I have read the wiki and see that this is configure via an offset and number of addresses, but I can not apply those settings to my setup.

The IP address of my router is 192.168.123.254
I want to DHCP pool to be 192.168.123.100-192.168.123.150

I have tried with different offset values and it assigns the first DHCP IP after the highest staic lease IP. I have also tried a negative offset but this gives an error in LuCI.

Any ideas on how to configure my DHCP IP pool with my config?

Thanks

1 Like

Mine is set from 192.168.1.26 - 192.168.1.254 and it works fine. I use 192.168.1.2 - 192.168.1.25 for static devices.

1 Like

What is the IP address of your router and what offset do you use?

uci set dhcp.lan.start="100"
uci set dhcp.lan.limit="50"
uci commit dhcp
/etc/init.d/dnsmasq restart

https://openwrt.org/docs/guide-user/base-system/dhcp#dhcp_pools

4 Likes

uci set dhcp.lan.limit="51"
:upside_down_face:

2 Likes

I dont know what I was doing previously but it has worked this time. I was thinking that the offset was from the IP address of the router, which is 192.168.123.253.

Thanks for clearing that up for me!

2 Likes

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