[Kea-users] Dynamnic option generation (boot-file-name)
Marcin Jurczuk
spock at omegastar.eu
Mon Oct 27 11:01:37 UTC 2025
Hi Guys,
I'm fighting for past few days with kea setup for migration from ISC-DHCP.
I can't make file option in DHCP packet set to dynamic value:
My device expects next-server and filename value provided by dhcp and
filename config path must be autogenerated and based on device MAC
I was able to set up option 67 with this:
{
"library": "/usr/lib/kea/hooks/libdhcp_flex_option.so",
"parameters": {
"options": [
{
"add": "concat(hexstring(pkt4.mac,''), '.cfg')",
"client-class": "STB",
"code": 67
}
]
}
}
This works as expected in terms option generation but device don't want
option 67 - it wants boot-file in DHCP (bootp) packet
That seems very populat stuff in DOCSIS/PON world where boot-file is either
MAC/Serial/other dynamic string so there must be easy way to set this up :)
However all my attempts to make it for filename field failed.
Any idea how to achieve this without writing own hook ?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20251027/d9955c2d/attachment.htm>
More information about the Kea-users
mailing list