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

    DHCP server options

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 5.2k 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.
    • D
      duderz
      last edited by

      Can someone please point me to documentation on how to add dhcp server options
      The file is /var/etc/dhcpd.conf

      example options cut from dhcpd.conf

      option routers 192.168.1.1;
              option domain-name-servers 192.168.1.1;

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        Conf files are overwritten on each boot / config change as everything is generated dynamically from the config.xml so your changes won't have a very long life. However somebody at IRC made it work by disabling DHCP in the webgui, editing the file and calling it from the shell / by hidden XML option at bootup.

        1 Reply Last reply Reply Quote 0
        • D
          duderz
          last edited by

          Thanks for the info Hoba,

          I need the option to set dhcpd server options in my home network and at least one customer site where I intend to replace a software LB and DHCP server and adding some dhcp options like tftp server, pxe stuff etc…

          Would it be possible to add a "manual settings" or the like in the Web GUI so that custom modifications like these could be set in less hacker prone way?  For myself I don't care, but I just can't push this kind of workaround to a customer. It's however perfectly fine to manually edit dhcpd.conf, but there needs to be a consistency....

          ps. The customer is a school, so I do not make any money out of pfsense, I just want to save them a few bucks by replacing commercial software where possible...This is a common need for schools and other non-profit orgs. so adding this to the core would help a lot of people.

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            http://faq.pfsense.com/index.php?sid=18033&lang=en&action=artikel&cat=10&id=38&artlang=en&highlight=hidden

            1 Reply Last reply Reply Quote 0
            • D
              duderz
              last edited by

              Sorry, it was right under my eyes. I just looked in the wrong place :-[
              What I was looking for more specifically was the next-server and filename options to do some pxe stuff with either anywhereTS.com or thinstation.org, obviously I can do that right out of the box just by modifying config.xml

              [code]

              • <dhcpd>- <lan><enable>- <range><from>192.168.1.100</from>
                  <to>192.168.1.199</to></range>
              • <winsserver>xxx.xxx.xxx.xxx</winsserver>
                <defaultleasetime></defaultleasetime>
                <maxleasetime></maxleasetime>
                <gateway>xxx.xxx.xxx.xxx</gateway>
                <domain></domain>

              <filename></filename>

              --></enable></lan>
              -</dhcpd>

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