Vendor Options For Specific Vendors/Enterprise Numbers

Shweta Kalyani shwetakalyani at
Tue Jun 11 11:59:59 UTC 2019


I am using dhcpd 4.3.5.
I have set up my server to return vendor specific options for a particular
enterprise number.
The server is returning these vendor specific options even if the client is
requesting Vendor Specific Information - Option 17 - for a different
enterprise number passed via Vendor Class - Option 16.
Has anyone faced this issue or is it a known issue?

On looking into the code, found the following in common/tables.c:
#if 0
        /* XXX: user-class contents are of the form "StA" where the
         * integer describes the length of the text field.  We don't have
         * an atom for pre-determined-length octet strings yet, so we
         * can't quite do these two.
        { "user-class", "X",                    &dhcpv6_universe, 15, 1 },
        { "vendor-class", "X",                  &dhcpv6_universe, 16, 1 },

It looks like vendor-class support is not present, which can be the reason
for not having the 1:1 associaton between the class and the options.
The latest code dhcp-4.4.1 also has the above code commented.
Could you confirm that this support of not returning vendor options for
specific enterprise numbers is because the above snippet is commented?
Any idea when this support will be added?

Reference Config Files:
Client Config
require dhcp_server_identifier
option interface_mtu
option broadcast_address
option dhcp6_sol_max_rt
option dhcp6_name_servers
option dhcp6_domain_search
option dhcp6_sntp_servers
option dhcp6_vivso
vendclass 4118

Server Config
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
allow leasequery;
option 2606:4700:4700::1111,2001:4201:0:50::148;
option dhcp6.domain-search "","";
option dhcp6.sntp-servers 2607:fe70:0:16::a,2610:20:6f97:97::6;
option 21600;

option space abcd code width 2 length width 2 hash size 100;
option vsio.abcd code 4231 = encapsulate abcd;
option abcd.vendopt1 code 1 = text;

subnet6 2001:4201:0:50::/64 {
range6 2001:4201:0:50::2 2001:4201:0:50::149;
option abcd.vendopt1 "HelloWorld";

In the above, the vendor option set for enterprise number 4231 is sent for
vendclass 4118.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list