[Kea-users] Using option82 (isc-kea)

Eric Graham eric.graham at vantagepnt.com
Tue Jun 20 14:26:35 UTC 2023


Ronald,

There is another way to log these if you're willing to write some code or a script. The run_script hook (https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#run-script-run-script-support-for-external-hook-scripts) takes the path of an executable to run, and then passes it information about packets received through environment variables. Option 82 is one of the few that is passed to the program, so writing something to log it is fairly straightforward. Otherwise, writing a fully featured hook to log the option data is very possible, if you can't afford the legal logging hook.

Eric Graham
DevOps Specialist
Direct: 605.990.1859
Eric.Graham at vantagepnt.com<mailto:eric.graham at vantagepnt.com>
[cid:590a2152-6a12-4370-a2d4-82e7f99bdab0]
________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Darren Ankney <darren.ankney at gmail.com>
Sent: Tuesday, June 20, 2023 4:36 AM
To: DDFR | Ronald Blaas <ronald.blaas at ddfr.nl>
Cc: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: Re: [Kea-users] Using option82 (isc-kea)

CAUTION: This email originated outside the organization. Do not click any links or attachments unless you have verified the sender.

Hi Ronald,

There are two ways to log this.

1) log kea-dhcp4.packets at debug severity.  I'm not exactly sure what
level option 82 begins to appear but I believe it to be 50+
2) Use the forensic logging hook:
https://kea.readthedocs.io/en/kea-2.2.0/arm/hooks.html#legal-log-forensic-logging

Thank you,

Darren Ankney

On Mon, Jun 19, 2023 at 8:02 AM DDFR | Ronald Blaas
<ronald.blaas at ddfr.nl> wrote:
>
> Hi all,
>
> I have been searching and searching but could not find an answer to satisfy my needs.
>
> I am new in using kea-dhcp.
> I have a working setup using reservations with option 82 (circuit id).
> But What I would like is that I can see the circuit-id in plain text in the log file and lease file.
>
> How do I accomplish this?
>
> I am using Ubuntu 22.04 with the repository from cloudsmith.io
>
> Any insight is appriciated
>
> Regards,
>
> Ron
> --
> 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
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230620/f73012f2/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-tprh2hjt.png
Type: image/png
Size: 16388 bytes
Desc: Outlook-tprh2hjt.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20230620/f73012f2/attachment-0001.png>


More information about the Kea-users mailing list