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

    Pfsense 2.2 Interface advanced dhcp client configuration

    Scheduled Pinned Locked Moved webGUI
    7 Posts 4 Posters 4.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.
    • C
      clw
      last edited by

      For some ISP's in Switzerland we need to set DHCP option 60 (dhcp-class-identifier) to receive a ip on wan interface.

      In the older pfsense versions i set it directly in the /etc/inc/interfaces.inc file like this:

      $dhclientconf .= <<<eod<br>interface "{$wanif} {
      send dhcp-class-identifier "100008,0001,,pfsense dhclient 2.1";
      …

      Now in pfsense 2.2 i want to use the new possibility in the web ui. interfaces --> wan --> DHCP Client Configuration --> Advanced (checkbox) --> send options

      i put this in the textfield:
      dhcp-class-identifier "100008,0001,,pfsense dhclient 2.1";

      But i do not receive a ip address.

      What syntax do i have to use in the web interface?
      Do i have to use the Delimiter (space, colon, hyphen, or period) (omitted for none). to make it work?</eod<br>

      1 Reply Last reply Reply Quote 0
      • L
        lololo
        last edited by

        Hello,

        I have the same problem, have you find a solution ?

        Thanks

        1 Reply Last reply Reply Quote 0
        • C
          clw
          last edited by

          Now I spend again some time on this issue.

          I Checked the log with Wireshark and now i know the problem.

          The problem is that pfsense web gui do not accept a "," (column) in the text field of dhcp-class-identifier.

          If i put this in the Advanced Config of the WAN interface (Web UI):
          dhcp-class-identifier "100008,0001,,pfsense dhclient 2.1"

          The output (in Wireshark) is:
          100008;\n\tsend 001;\n\tsend ;\ blabla

          The columns (,) are replaced with ";\n\tsend".

          Is there any way to put a column in the field? Or e escape code etc.?

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Apparently not:

            https://github.com/pfsense/pfsense/blob/RELENG_2_2/etc/inc/interfaces.inc#L3858
            https://github.com/pfsense/pfsense/blob/master/src/etc/inc/interfaces.inc#L4164

            Appears completely misimplemented, just file a bug perhaps.

            1 Reply Last reply Reply Quote 0
            • C
              clw
              last edited by

              Ok. Thank you for this information.

              Do I have to create a bug report or something else?

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Well yes if you want that fixed.

                1 Reply Last reply Reply Quote 0
                • N
                  NOYB
                  last edited by

                  Try using the config file override option to specify a your custom DHCP client config file to use.

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