Good day. The situation is as follows. There is a dhcp server on it. There is a PXE server. Task: Make the PXE server get the address automatically. After that, he could distribute PXE addresses and the path to the download file (TFTP on it) to clients. You can even without automatically receiving the address of the PXE server.

Who can that prompt. The problem is solved, but so long ago that I don’t even remember how

  • on the first dhcp server of the only client (the second dhcp) register on the mac address. others are somehow ignored or they will be ignored automatically. In general, separate them to the mac-addresses of customers - Sergey
  • thanks for the answer. The meaning of two dhcp is that the first distributes addresses to everyone (except pxe - clients) and always. The second is all in one Tftp server and dhcp server, and it should respond only if the ip address asks the pxe client to give it (the client) also the path to the download file. How it looks live. We need to boot over the network (memtest for example). Turn on the server (which is on the laptop). We select on the client loading on a network, we are loaded. Why not just carry a flash drive? I have a bunch of them, tired of carrying. looking for an alternative. - serega semenov Nov.

2 answers 2

Let's start with this question:

Can I put more than one DHCP on one broadcast segment?

Yes, but with a reservation - the distribution ranges of the servers should not intersect.

Why do this?

For redundancy, if one of the DHCP fails, the second, third, etc., will work for it.

How will this work?

DHCP works on the principle of a hostel - who first got up, that and sneakers, a cup, a bathroom, kote - who first answered, and they will take the address. For this to occur in a more specific way, you need to configure both servers.

Does the author need to do what he was going to do?

Unlikely. The author wants to do strange by dividing the server roles horizontally (DHCP servers | TFTP servers | Remote FS servers), but by making a DHCP with an unclear role (distribute addresses to everyone, but not distribute PXEswitched?) And attach a PXE with a separate role to it from the side (distribute download addresses?). The goals are not clear, the tasks are not clear, the prospects for stable work are not visible.

What to do?

If you need to provide fault tolerance:

Make N servers DHCP + TFTP, cutting the space of addresses between them. Each server as a TFTP will give itself away.

Pros - the departure of any server will not affect the performance of the download. Cons - it will take some time to polish the configuration.

  • 2
    Yes, but with a reservation - the distribution ranges of the servers should not intersect. - Wrong. The description of the DHCP protocol says that when a client forms a response to the proposed address - a DHCPREQUEST message, it sets the "End address is still broadcasting, because SEVERAL DHCP servers could respond to the request and at the moment they can wait for an answer to the offer made to the client. This is informs the rest of the DHCP servers that they can no longer hold their addresses and return them to the existing pools. " In short - what server the client will use - he must decide for himself. - Sergey
  • thanks for the answer. The meaning of two dhcp is that the first distributes addresses to everyone (except pxe - clients) and always. The second is all in one Tftp server and dhcp server, and it should respond only if the ip address asks the pxe client to give it (the client) also the path to the download file. How it looks live. - serega semenov Nov.
  • one
    @seregasemenov, and not easier to dilute computers on different vlan? - don Rumata

In the DHCP client settings (on the workstations) it is necessary to set a list of DHCP server preferences. What would the client prefer to work with PXE, and if he did not respond to DHCPDISCOVER, then take the parameters from the router.

How to do it - depends on the client. If you write the client yourself, then there is no problem.

  • Ummm ... and how to register a list of dhcp-servers in the network card? - don Rumata