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.
--
ISC funds the development of this software with paid support subscriptions.
Contact us at https://www.isc.org/contact/ for more information.
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
[email protected]