<div dir="ltr">Hello Darren and all<div><br></div><div>I searched on the web, I was not able to find any method for setting option 55 or for getting Option 43 items.</div><div>I checked the github queries that community has posted but nothing for vendor options.</div><div>I feel that dhcpcd support is comparatively lesser than dhclient.</div><div>My problem is the project I am working on is using yocto build environment and yocto build environment supports dhcpcd client by default.</div><div>For dhclient probably there will be requirement for cross-compiling the code and then generate binary for the hardware, still will it work or not. But I don't mind giving it a try.</div><div>Any suggestions / hints are welcome.</div><div><br></div><div>Thanks</div><div>Rje</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 12, 2023 at 1:12 AM rajeev Gaur <<a href="mailto:rajeev11gaur@gmail.com">rajeev11gaur@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello Darren and All<div><br></div><div>Thank you for the response.</div><div>Yes you are correct, I need to use dhcp client to fetch vendor options (option 43) items from DHCP Server.</div><div>Ok let me check how can I set option 55 Parameter Request List. But I was not able to find it in dhcpcd man pages.</div><div>Let me search further on net.</div><div><br></div><div>Thanks</div><div>Rajeev</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 11, 2023 at 10:15 PM Darren Ankney <<a href="mailto:darren.ankney@gmail.com" target="_blank">darren.ankney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Rje,<br>
<br>
If I understand correctly, you are wanting your DHCP client to fetch<br>
option 43 content from the server. There should be a way, in dhcpcd,<br>
to modify option 55 (parameter request list) adding the vendor options<br>
(option 43) to the list of requested parameters. Then the server will<br>
return the option 43 content.<br>
<br>
On Sat, Mar 11, 2023 at 2:29 AM rajeev Gaur <<a href="mailto:rajeev11gaur@gmail.com" target="_blank">rajeev11gaur@gmail.com</a>> wrote:<br>
><br>
> Hello Sir<br>
><br>
> I am working on a project for fetching various different categories of information from dhcp server.<br>
> DHCP Server: ISC DHCP Server 4.4.1<br>
> Client: dhcpcd 9.4.0, Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH<br>
> Build environment: Yocto<br>
><br>
> At this point when I am writing this mail, the basic working looks good.<br>
><br>
> The DHCP server, starts stops restarts well. In logs I can see the DISCOVER / OFFER / REQUEST / ACK all working fine. Lease IP is properly provided to client.<br>
><br>
> #<br>
><br>
> # DHCP Server Configuration file.<br>
><br>
> # see /usr/share/doc/dhcp*/dhcpd.conf.sample<br>
><br>
> #<br>
><br>
><br>
><br>
> authoritative;<br>
><br>
><br>
><br>
> option space Vendor-ONAS-INFO code width 1 length width 1 hash size 5;<br>
><br>
> option Vendor-ONAS-INFO.ipadd code 1 = ip-address;<br>
><br>
> option Vendor-ONAS-INFO.port code 9 = unsigned integer 16;<br>
><br>
><br>
><br>
> subnet 192.168.2.0 netmask 255.255.255.0 {<br>
><br>
> range 192.168.2.35 192.168.2.52;<br>
><br>
> option routers 192.168.2.56;<br>
><br>
> option subnet-mask 255.255.255.0;<br>
><br>
> option domain-name-servers 8.8.8.8;<br>
><br>
> default-lease-time 100;<br>
><br>
> max-lease-time 100;<br>
><br>
> option host-name "OR-SERVER";<br>
><br>
> option ntp-servers 138.12.56.111;<br>
><br>
> option vendor-class-identifier "Vendor-ONAS";<br>
><br>
> vendor-option-space Vendor-ONAS-INFO;<br>
><br>
> option Vendor-ONAS-INFO.ipadd 192.168.71.50;<br>
><br>
> option Vendor-ONAS-INFO.port 11372;<br>
><br>
> }<br>
><br>
><br>
> On the client side, dhcpcd, I have kept information to allow and deny interfaces, enabled the standard DHCP options for which I am getting values ( except for dhcp_client_identifier).<br>
> When I am performing ifdown and ifup for eth0 I am getting one leased IP from the dhcp server.<br>
><br>
> #Use the hardware address of the interface for the Client ID<br>
> clientid<br>
> allowinterfaces eth0<br>
> denyinterfaces eth1<br>
><br>
> option ntp_servers<br>
> option dhcp_server_identifier<br>
> option dhcp_client_identifier (**Not getting this output)<br>
><br>
> My problem / Query:<br>
> 1) What option to give in dhcpcd.conf to fetch the vendor options that i have declared in dhcpd.conf at the server side.<br>
> 2) Do I need to enable any thing on any side (client or server).<br>
><br>
> I did not see much documentation for dhcpcd client for vendor options.<br>
> I did saw the dhcpcd.conf man page for vendor information but it shows:<br>
> vendor code ,valueAdd an encapsulated vendor option. code should be between 1 and 254 inclusive. To add a raw vendor string, omit code but keep the comma. Examples. Set the vendor option 01 with an IP address.vendor 01,192.168.0.2Set the vendor option 02 with a hex code.vendor 02,01:02:03:04:05Set the vendor option 03 with an IP address as a string.vendor 03,\"192.168.0.2\"Set un-encapsulated vendor option to hello world.vendor ,"hello world"<br>
><br>
> But I don't need to add any vendor option I have to fetch it from the server.<br>
><br>
> I also tried giving vendorclassid so that it can fetch the details provided for the vendor class identifier in the server, but i don't see any output.<br>
><br>
> I have previously worked with dhclient and i was able to fetch information using that and I also see it has much more documentation online. But i see less documentation for dhcpcd. But this is the only recommended client for Yocto build environment.<br>
><br>
> Please suggest how can I fetch the vendor options using dhcpcd client.<br>
><br>
> Thanks<br>
> Rje<br>
> --<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
><br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>
</blockquote></div>