DHCPServer icon indicating copy to clipboard operation
DHCPServer copied to clipboard

DHCP pool bypass of reservations

Open t3therdev opened this issue 5 years ago • 3 comments

Hi, is there a way to prevent the dhcp server from issuing ip's referenced in the list of reservations? it seems that if the reservations are within the pool, there can still be a conflict as the server will issue an ip that can also be taken by a reservation.

t3therdev avatar Jun 05 '20 18:06 t3therdev

In the config file the normal pool start-end range should not overlap the reservation ranges, but it's true there's no validation or warning when they do. To fix this I could choose one of these:

  • validate and warn if there's an overlap
  • allow overlap but automatically exclude reservation ranges from the normal pool

I should have a look and see what's a common way of handling this in other dhcp servers.

jpmikkers avatar Jun 06 '20 23:06 jpmikkers

This is how pfsense handles it:

https://docs.netgate.com/pfsense/en/latest/dhcp/static-mappings-inside-dhcp-pools.html

t3therdev avatar Jun 07 '20 18:06 t3therdev

It seems that we should allow overlap of reservations and the pool. But we need to make sure that the dhcp server will NOT assign ip's that are reserved. This would allow both scenarios to be covered. Users that are keeping it outside the range could validate the reservations and not allow overlap. But to keep users from having to power cycle their devices, the server should never assign an IP that has a reservation. Can we do it that way?

t3therdev avatar Jun 08 '20 18:06 t3therdev