Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCPD Configuration for PXE

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gommox
      last edited by

      Hello guys.

      I'm having difficulties in configuration of DHCPd for gPXE boot.

      I need to break the loop in the chainload startup, and I need to add some configuration strings in the /var/dhcpd/etc/dhcpd.conf.

      I add the strings in this file, and save it; after that, when I restart DHCPd daemon, the old settings are restored. How I can do to store the new configuration avoiding that the old one will replace the new one after service restart?

      For DHCPd there is not the availability of free text insertion in the GUI, it only allows to add options with number, type and value.

      The strings to add are:

      
       if exists user-class and option user-class = "gPXE" {
            filename "http://my.web.server/real_boot_script.php";
        } else {
            filename "undionly.kpxe";
        }
      
      

      I've to transform them in the format "number, type, value"? if yes, how to do that?

      Thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.