Hi, Enabling debug logging for DHCPSRV (https://kea.readthedocs.io/en/kea-2.4.1/kea-messages.html#dhcpsrv) may log this in a roundabout way with the DHCPSRV_CFGMGR_SUBNET4_RELAY statement:
DHCPSRV_CFGMGR_SUBNET4_RELAY selected subnet %1, because of matching relay addr %2 This is a debug message reporting that the DHCP configuration manager has returned the specified IPv4 subnet, because detected relay agent address matches value specified for this subnet. According to the 2.7.3 version of the ARM, which contains debug levels at which things start to log, this should log at level 40. However, please note that the levels may have changed since 2.4.1 and so that level may not be accurate. This may only log if you have specified relay agents for the various subnets or shared networks as noted here: https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#local-and-relayed-traffic-in-shared-networks and here: https://kea.readthedocs.io/en/kea-2.4.1/arm/dhcp4-srv.html#using-a-specific-relay-agent-for-a-subnet I am not sure as I've not tested this. Thank you, Darren Ankney On Wed, Oct 16, 2024 at 6:41 AM Giddings, Bret via Kea-users <kea-users@lists.isc.org> wrote: > > Hi, > > > > I’ve been trying to get kea to log the IP of the DHCP relay that forwarded > the packets but can’t see an obvious way to get this information. > > > > I’ve tried running in debug mode without any logging statements but this > still doesn’t show this pertinent information. If I run dhcpdump, I do see > requests with GIADDR set so know that I’m seeing the request, plus kea is > responding correctly to relayed client requests. > > > > Is it possible to get this information into the logs? > > > > # kea-dhcp4 -V > > 2.4.1 > > tarball > > linked with: > > log4cplus 2.0.8 > > OpenSSL 3.0.14 4 Jun 2024 > > database: > > MySQL backend 19.0, library 3.3.8 > > PostgreSQL backend 18.0, library 150008 > > Memfile backend 3.0 > > -- > 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@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@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users