[Kea-users] kea-dhcp4 server fails with message 'option type 18 not supported'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] kea-dhcp4 server fails with message 'option type 18 not supported'

Anna Mager
Hello,

i am translating my isc-dhcp config to kea config (kea 1.6.0) and I have
some vendor options for unifi access points to find their controller.
Unifi's manual for doing this with old isc-dhcp server can be found
here:
https://help.ubnt.com/hc/en-us/articles/204909754-UniFi-Device-Adoption-Methods-for-Remote-UniFi-Controllers#7

This is what I've come up with following the documentation
(https://kea.readthedocs.io/en/v1_6_0/arm/dhcp4-srv.html#dhcpv4-private-options):

"Dhcp4":{

....

"option-def" [

      {
            "name" : "unifi-address",
            "code" : 1,
            "space": "ubnt",
            "type" : "ipv4_address"
        }
    ],

...

"client-classes": [

    "name": "ubnt",
    "test": "substring(option[60].hex,0,4) == 'ubnt'",
    "option-def": [
        {

            "name" : "vendor-encapsulated-options",
            "type" : "empty",
            "encapsulate": "ubnt",
            "code" : 43
         }
     ],
    "option-data": [
          {
              "name": "unifi-address",
              "data":"123.123.123.123"
          },
          {
               "name": "vendor-encapsulated-options"
          }

    ]

    },

...

Everytime I try starting kea it fails with the following message:

2019-11-28 14:21:01.668 ERROR [kea-dhcp4.dhcp4/2837] DHCP4_INIT_FAIL
failed to initialize Kea server: configuration error using file
'/usr/local/etc/kea/kea-dhcp4.conf': option type 18 not supported.

The error points to to the place where the unifi-address is defined in
top-level option-def. I have a lot of vendor specific options with code
43 defined in the same way in my config, which check out perfectly. But
each time I add the part about the unifi adress, kea signals me that
option type 18 is not supported.

Any hints are much appreciated.

Best regards,

Anna


--
Anna Mager
System Engineer


SysEleven GmbH
Boxhagener Straße 80
10245 Berlin

T +49 30 233 2012 170
F +49 30 616 7555 0


http://www.syseleven.de 
http://www.facebook.com/SysEleven 
http://www.twitter.com/syseleven 

Aktueller System-Status immer unter:
https://www.syseleven-status.net/

Firmensitz: Berlin
Registergericht: AG Berlin Charlottenburg, HRB 108571 B
Geschäftsführer: Marc Korthaus, Jens Ihlenfeld

_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users