DHCPD Configuration for PXE



  • 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


Log in to reply