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

    Dhclient - Defining New Options

    2.0-RC Snapshot Feedback and Problems - RETIRED
    2
    2
    2.4k
    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.
    • N
      NOYB
      last edited by

      Cannot seem to get this to work.  Have it working on a Linux machine (CentOS 5.5 i386), but cannot get it to work on pfSense 2.0 RC3 (FreeBSD 8.1 i386).

      Is the syntax different?  Shouldn't this work?

      /etc/inc/interfaces.inc  (wan interface section that creates dhcleint_wan.conf)
      /var/etc/dhclient_wan.conf

      option V-I-Vendor-Specific-Information code 125 = string;
        send V-I-Vendor-Specific-Information 00:00:0d:e9:1f:01:06:30:30:30:46:42:33:02:0c:30:30:31:38:30:31:35:31:45:42:33:34:03:07:4d:49:34:32:34:57:52;
      
      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        @NOYB:

        Cannot seem to get this to work.  Have it working on a Linux machine (CentOS 5.5 i386), but cannot get it to work on pfSense 2.0 RC3 (FreeBSD 8.1 i386).

        Is the syntax different?

        pfSense/FreeBSD is not Centos/Linux. So syntax is quite likely to be different.

        @NOYB:

        Shouldn't this work?

        /etc/inc/interfaces.inc  (wan interface section that creates dhcleint_wan.conf)
        /var/etc/dhclient_wan.conf

        option V-I-Vendor-Specific-Information code 125 = string;
          send V-I-Vendor-Specific-Information 00:00:0d:e9:1f:01:06:30:30:30:46:42:33:02:0c:30:30:31:38:30:31:35:31:45:42:33:34:03:07:4d:49:34:32:34:57:52;
        

        See previous answer.

        On PfSense many of the individual application configuration files are regenerated on startup from the system master configuration file. Since you are apparently modifying /etc/inc/interfaces.php you should be able to get around this issue. You should consult the FreeBSD man page for dhclient (in FreeBSD 8.1 and ports) and the linked pages especially dhclient.conf and dhcp-options for information on how to specify dhcp options to dhclient.

        Your changes to interfaces.inc will be lost on every firmware update so it will probably be worthwhile looking for a more robust solution to your particular problem.

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