I'm trying to migrate from a situation with static ip addresses and a dhcp server on a router to one new dhcp server.
My idea was to add the current static ip addresses as static ip addresses in the dhcp server, so I can still manage them from that server, and to move the current dhcp leases to static ones as well, as these ip addresses are more or less used as static ones too, being referred to in hosts.allow etc on some machines for example.
I do however also still need dynamic addresses, and I'd like to know if I can for example define that my pool of dynamic addresses is from 192.168.1.2 to 192.168.1.200, but have some exlusions in that range for the static addresses.
What would my dhcpd.conf have to look like to achieve that, can I just define the pool and define seperate static addresses and will the dhcpd take those out of the pool automatically?
I can't test this setup as this is a live network with a working dhcp on a router already, that's why I have to ask it up front.
I think you're getting your terminology confused sorry, let me try to clarify this for you.
Static addresses are just that, absolutely static, they're set on the individual host machines and have nothing to do with DHCP at all - as such they're not reliant on DHCP existing and don't have leases at all.
Fully dynamic addresses are given out from a DHCP server as part of a scope, do have leases and are succeptable to the various problems that DHCP brings such as what happens when the DHCP server falls over, what happens if/when someone switches on another DHCP server etc.
DHCP Reservations are almost identical to fully dynamic addresses with the exception that specified hosts always get the same IP address but are no different in the face of the problems listed above.
So getting to your question, yes you can define a dynamic scope and reserved IPs on one server but you have to manually define both sets and yes this does mean that you could misconfigure the server by having overlapped reserved addresses and dynamic scoped addresses - basically just don't do that by being careful and using something like a spreadsheet to keep you records and plans up to date.