dhcpcd-discuss

Customizing DHCP options in script

HAMMERMÜLLER Thomas

Wed Jun 27 10:54:08 2018

Hi,

I´m using dhcpcd on the Raspberry Pi and it works pretty good.
Now I would like to send some information from the client to a DHCP server via the DHCP options. For this, I use option 60, vendor class id, and option 43, vendor specific information. If I configure both options in the dhcpcd.conf it works also pretty good.
Now my question is, if it is possible to customize both options in the run hook e.g. PREINIT?
Background is that the content of both options should depend on some hardware switches on the device. I would need this to be able to distinguish between the devices at the DHCP server.

Thanks in advance

Regards,
Thomas

Follow-Ups:
Re: Customizing DHCP options in scriptRoy Marples
Archive administrator: postmaster@marples.name