Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    pxe-boot dhcp configuration

    Hey all, can you guys look over my configuration and check Im not doing antyhing silly. There is already a dhcp router set up at but I want to set this one up to override for specified mac addresses for pxe booting. The service stops and starts correctly, but it appears that no computers are picking this up. My brother seems to figure that you just cant have two dhcp servers on the same network, but then what would the authoritative line be for, and I got the impression that you could from reading about it in the man for dhcpd.conf

    # Stuarts pxe-boot dhcp server
    ddns-update-style interim;
    allow booting;
    allow bootp;
    ignore client-updates;
    subnet netmask {
        # Put all pxe-booting clients here
        host pxe-client {
            # Host specific parameters
            hardware ethernet 00:21:9B:16:1B:F6;
        host another-pxe-client {
            hardware ethernet 00:21:9B:16:26:FA;
        option routers    ;                 # Local Router ip
        option domain-name-servers;                     # GOOGLE DNS
        option subnet-mask;
        range             ;
        filename                    "/pxelinux.0";
        default-lease-time          21600;
        max-lease-time              43200;
        next-server       ;                 # this servers ip
        deny                        unknown-clients;             # only apply to specified clients

  2. #2
    i've run into this problem before (2 DHCP servers on the same LAN), and the authoritative declarative did not work for me like I had hoped. btw, you can have two DHCP servers on the same subnet, it is just a matter of configuring them properly. also, if there is no way for the client to specify its preferred DHCP server, then it is hit or miss, who responds to the client query first.

    can you control/configure the DHCP server at can you force it to only respond to certain MAC addresses as well? can you disable it temporarily, too, to make sure that the DHCP sever on is working otherwise?

  3. #3
    unfortunately not, but this was just for testing and at least in the real-life situation I wont have to worry about having 2 dhcps. It would work only when I put this dhcp server in its own lan not connected to the other dhcp server, The other problem with having two dhcp servers within the same subnet is making sure that the ips cannot overlap, and there is no sure-fire way it seems to ensure that a client will use one server instead of the other. I had hoped that this wouldnt really act as a dhcp server so much as just a pxe-boot server for manually configured clients. Evidently that seems impossible.

  4. $spacer_open
  5. #4
    i take it you cannot specify the preferred DHCP/PXE-boot server on the client (like in the BIOS, or whatever)?

  6. #5
    No we need this to be pretty much automated from the dhcp point of view. Being a dhcp config i can write a script to easily change it and restart the process. Quite difficult to write a script to alter machines' bios

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts