As the title implies, May look like a silly question, But what i'm trying to do, Is to have 2 DHCP servers in one network. One only leases IPs to Bootp clients (And if the client re-requests immediately after leases again) And one DHCP server, which is builtin with my PFsense router, that leases the non-bootp clients so they can access the internet and other network resources. I know by chance that PFsense uses ISC-DHCPd. Maybe they have a delay option?
All i need to do to make sure the bootp/PXE boot clients get the proper address, is slow down the DHCP server in the PFsense box. Question is how. Anyone ideas? Thanks in advance
EDIT:
The reason i have TWO DHCP servers, is because one is being configured and run by Clonezilla, Which configures the dhcp server to ONLY lease to bootp clients (and clients with bootp-registered macs that request a dhcp address). The PFsense DHCP server runs to provide addressing for a different Vlan, which doesn't allow contact with the image server's services.
The reason i'm not putting both configurations in one DHCP server is simply convenience. Clonezilla auto-tweaks the image client's leases automatically so that they boot up correctly with PXE.
Since clonezilla's DHCP doesn't provide IPs to the computers that haven't used bootp, i don't see why it should conflict with the PFsense DHCP server.
The PFsense box IS configured not to lease to bootp clients, However, once the bootp client has loaded a minimal image from the clonezilla server, it'll do a DHCP request instead of bootp, which gives it the wrong IP and therefore it can't access the appropriate network resources. The clonezilla server ONLY gives out IPs to clients that downloaded an image in the past ~2 minutes, so it should not conflict with the other DHCP server.
The easy solution for therefore, would be to delay the DHCP offers from the PFsense server.
Thank you all for the input, though. Suggestions welcome.
This is kind of an old post, but it still comes up in search results, so I'm going to add to it.
First: having two DHCP servers in a subnet is not going to cause problems no matter what, that's a very misleading statement. What will cause issues is two DHCP servers which are offering the same pool of addresses. You can have two servers offering different ranges of IP addresses (like 192.168.1.1-100 on one and .101-200 on a second) within the same subnet without causing any issues at all. In fact, if you want to have redundant DHCP in your network, this is a recommended/best practice way to do it.
Second, here's some instructions from Microsoft which may get someone a little closer if they happen to have a similar issue: http://technet.microsoft.com/en-us/library/ee405264(v=ws.10).aspx
You wouldn't ordinarily have 2 DHCP servers on the same subnet. That's asking for big problems. You would have one DHCP server that handles both tasks.
I've never done it, but you can have two DHCP servers that both make offers to a client. It is up to the client to pick one of the offers
I think the trick is that you need to add the "authoritative" command to the top of the DHCP configuration on the Clonezilla machine but not on the PFSense box. That way if Clonezilla offers the client a DHCP address the client will accept that one first, otherwise it will fail back to the PFSense offer. YMMV
The article makes mention of this issue near the bottom: http://www.corbacho.info/clonezilla/clonezilla.html
Multiple DHCP servers are fine for failover. They are pretty common on enterprise networks. As long as they issue dynamic leases in different non-overlapping scopes, there is no problem.
Regarding booting after downloading and launching the OS image:
Can't you make those resources available to your regular pfsense controlled network?
When you have more than one DHCP server on the same switch or network, they should be made to work together. Which might be a challenge between 2 different apps :-)
So in this case it might be easier to use the VLAN port management on your switch(es) ? I.e once an imaged machine is ready to face the pfsense environment, go into your switch settings, and change the VLAN for the machine's port.
When you are booting clonezilla, it's default configuration will only accept DHCP responses from the server that it booted from. Did you check to make sure that both your DHCP servers are configured with different names?
Why do you need 2 DHCP servers, why can you not use 1? Theres really no reason for 2 and they will cause issues no matter how many times you tweak it. I think you have a misconception about DHCP ,your issue, and solution...