[Kea-users] SQL host reservations (Kea 1.3.0)

Tobias - lokskada at live.se
Wed Jan 17 16:44:08 UTC 2018


Hi Owen!

Great! How could I have missed that? That's exactly what I've been looking for. I just didn't dig deep enough I guess.

Thank you!
Tobias

Den 17 jan. 2018 17:33 skrev Owen Dunn <osd1000 at cam.ac.uk>:
On Wed, 17 Jan 2018, Tobias - wrote:

> I've set up mariadb to host Kea's leases. I'm trying to figure out how to make reservations through the 'hosts' table.
>
> I do not understand how the IP address in 'ipv4_address' is encoded. I've looked in the 'lease4' table but I don't see the pattern.
>
> How is an address encoded as an 'int(10) unsigned'?

It's just 16777216*octet1 + 65536*octet2 + 256*octet3 + octet4.

I found https://kea.isc.org/wiki/HostReservationsHowTo invaluable for
backending on databases.

Owen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20180117/4c9f8255/attachment.htm>


More information about the Kea-users mailing list