[Kea-users] lease4-add command not supported

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] lease4-add command not supported

Bill Schoolfield
Why can't I get this to work?

echo '{ "command": "lease4-add", "service": [ "dhcp4" ], "arguments": {
"ip-address": "100.64.58.10", "hw-address": "1a:1b:1c:1d:1e:1f"}} }' |
socat UNIX:/tmp/kea-dhcp4-ctrl.sock -
{ "result": 2, "text": "'lease4-add' command not supported." }

This is running on Ubuntu and it is kea version 1.4.x. Another admin
built 1.4. Not sure why he did not go with 1.6. The requirement we have
is MySQL for host reservations. Does that have anything to do with using
1.4?



_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] lease4-add command not supported

Thomas Markwalder
The most likely culprit is that you did not add the Lease Cmds hook
library to kea-dhcp4 server's configuration:

:

     "hooks-libraries": [
       {
         "library": "<your-hooks-directory-here>/libdhcp_lease_cmds.so",
         "parameters": { }
       },
:



On 3/25/20 1:58 PM, Bill Schoolfield wrote:

> Why can't I get this to work?
>
> echo '{ "command": "lease4-add", "service": [ "dhcp4" ], "arguments":
> { "ip-address": "100.64.58.10", "hw-address": "1a:1b:1c:1d:1e:1f"}} }'
> | socat UNIX:/tmp/kea-dhcp4-ctrl.sock -
> { "result": 2, "text": "'lease4-add' command not supported." }
>
> This is running on Ubuntu and it is kea version 1.4.x. Another admin
> built 1.4. Not sure why he did not go with 1.6. The requirement we
> have is MySQL for host reservations. Does that have anything to do
> with using 1.4?
>
>
>
> _______________________________________________
> Kea-users mailing list
> [hidden email]
> https://lists.isc.org/mailman/listinfo/kea-users

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