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

    Custom options on DHCP

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 8.9k 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.
    • T
      topi
      last edited by

      Hello,

      I'm trying to configure 2 DHCP custom options: 49, X Window System Display Manager Option, and 66, TFTP server name, for using Sun Ray with pfSense as DHCP.

      This post give information on adding these entries on a Sun or Windows DHCP service:
        https://blogs.oracle.com/ThinkThin/entry/configuring_dhcp_options_49_and

      Also read the pfSense Book but it doesn't give any detail on adding DHCP custom options, so I added under "Additional BOOTP/DHCP Options" with Number 49 and 66, and Type "IP adress or host", but sniffing the DHCP response, these options are not included.

      Where could be the problem?

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        You clicked on Save and Apply after adding the options?

        You checked the options were written to the DHCP configuration file (/var/dhcpd/etc/dhcpd.conf)?

        You restarted the DHCP server (reboot would do that) to make sure it saw the updated options?

        You checked the DHCP server log (Status -> System Logs, click on DHCP tab) to see if it reported any problems?

        etc

        I suspect DHCP options are not commonly used in pfSense and consequently the code to deal with them may not be well exercised.

        What version of pfSense are you using?

        1 Reply Last reply Reply Quote 0
        • T
          topi
          last edited by

          Hello,

          1. Options we're saved and applied
          2. File "/var/dhcpd/etc/dhcpd.conf" contains these options
          3. DHCP restarted (DHCP is restarted after applying, which can be seen on DHCP logs)
          4. DHCP logs only show DHCP restarts

          pfSense 2.0.1

          Thanks and regards

          1 Reply Last reply Reply Quote 0
          • W
            wallabybob
            last edited by

            @topi:

            1. DHCP logs only show DHCP restarts

            Then you need to prod the clients to get them to send DHCP requests (or the firewall is blocking DHCP requests). A reboot is generally a sufficient prod but there are generally gentler methods.

            1 Reply Last reply Reply Quote 0
            • T
              topi
              last edited by

              @wallabybob:

              @topi:

              1. DHCP logs only show DHCP restarts

              Then you need to prod the clients to get them to send DHCP requests (or the firewall is blocking DHCP requests). A reboot is generally a sufficient prod but there are generally gentler methods.

              Yes, but clients are getting response from DHCP but without these options (i.e. wireshark don't show them in the DHCP response packet)

              1 Reply Last reply Reply Quote 0
              • T
                topi
                last edited by

                After some additional testing, it worked, with no changes on pfSense DHCP options.

                Maybe the DHCP client was the problem…

                Thanks for your help!

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