[Kea-users] option 43 coming back blank
Darren Ankney
darren.ankney at gmail.com
Sat Apr 15 10:25:36 UTC 2023
Hi Alan,
I believe i see the problem. There is nothing here to instruct Kea to
include the CALIXGC space in option 43. You should use the
"vendor-encapsulated-options-space" which Kea is expecting to
encapsulate in "vendor-encapsulated-options". See
https://kea.readthedocs.io/en/kea-2.2.0/arm/dhcp4-srv.html#dhcpv4-vendor-specific-options
for details. If you want to leave a note for yourself what it is for,
have a look at https://kea.readthedocs.io/en/kea-2.2.0/arm/config.html#user-context
which describes how you can leave comments in the JSON that are valid
JSON and also ignored by Kea.
Thank you,
Darren Ankney
On Fri, Apr 14, 2023 at 7:44 PM Alan Batie <alan at peak.org> wrote:
>
> I'm trying to migrate from isc-dhcp to kea, however the option 43
> responses are coming back blank (they are actually getting sent, just
> with an empty value field):
>
> 2023-04-14 16:31:37.551 DEBUG [kea-dhcp4.packets/17503.140114709323392]
> DHCP4_RESPONSE_DATA [hwtype=1 48:77:46:f9:5b:b0], cid=[no info],
> tid=0x830e4d5b: responding with packet DHCPACK (type 5), packet details:
> local_address=207.55.16.91:67, remote_address=207.55.34.22:68,
> msg_type=DHCPACK (5), transid=0x830e4d5b,
> options:
> type=001, len=004: 4294967280 (uint32)
> type=003, len=004: 207.55.34.17
> type=006, len=008: 69.59.192.61 69.59.192.62
> type=012, len=006: "router" (string)
> type=028, len=004: 207.55.34.31 (ipv4-address)
> type=043, len=000:
> type=051, len=004: 300 (uint32)
> type=053, len=001: 5 (uint8)
> type=054, len=004: 207.55.16.91
> type=082, len=097:,
>
>
> isc relevant config:
>
> global:
> option space CALIXGC;
> option CALIXGC.acs-url code 1 = text;
>
> subnet:
> set vendor-string = option vendor-class-identifier;
> vendor-option-space CALIXGC;
> option CALIXGC.acs-url "<some url>";
>
>
>
> kea relevant config:
>
> {
> "Dhcp4": {
> "option-def": [
> {
> "space": "CALIXGC",
> "name": "acs-url",
> "code": 1,
> "type": "string"
> }
> ],
> "subnet4": [
> {
> "option-data": [
> {
> "name": "vendor-encapsulated-options",
> "code": 43
> },
> {
> "space": "CALIXGC",
> "name": "acs-url",
> "code": 1,
> "data": "<some url>"
> }
> ]
> }
> ]
> }
> }
> --
> 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.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
More information about the Kea-users
mailing list