Dhclient - Defining New Options
-
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.confoption 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;
-
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.
Shouldn't this work?
/etc/inc/interfaces.inc (wan interface section that creates dhcleint_wan.conf)
/var/etc/dhclient_wan.confoption 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.