Vendor Options For Specific Vendors/Enterprise Numbers

Shweta Kalyani shwetakalyani at gmail.com
Tue Jun 11 11:59:59 UTC 2019


Hello,

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 },
#endif

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
------------------------------------------------
hostname
clientid
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
noipv4ll
lastlease
ipv6ra_noautoconf

Server Config
-------------------------------------------------
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
allow leasequery;
option dhcp6.name-servers 2606:4700:4700::1111,2001:4201:0:50::148;
option dhcp6.domain-search "test.example.com","example.com";
option dhcp6.sntp-servers 2607:fe70:0:16::a,2610:20:6f97:97::6;
option dhcp6.info-refresh-time 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.

Thanks,
Shweta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190611/0bfab189/attachment.html>


More information about the dhcp-users mailing list