[Kea-users] kea-dhcp6 option 18 and 37 logging

Torbjörn Eklöv torbjorn.eklov at interlan.se
Wed Feb 1 08:49:54 UTC 2017


> 31 jan. 2017 kl. 20:55 skrev Tomek Mrugalski <tomasz at isc.org>:
> 
> W dniu 27.01.2017 o 15:11, Torbjörn Eklöv pisze:
>> Hi list, I’m testing kea-dhcp6 with prefix delegation but I can’t get
>> the server log the option 18 and 37. I can see both ia_na and ia_pd
>> logged but not my options. What am i missing? It’s KEA 1.1 built with
>> this option - ./configure --enable-logger-check --with-openssl
>> --with-dhcp-mysql  --enable-debug
> Those options are not typically logged. If you enable debug level 45 or
> larger, then both incoming and outgoing packets are going to be logged.
> That will include interface-id (18) and remote-id (37). Be aware that it
> may be a lot of logs.
> 

I have tested to set debug level to 45 and up to 65 on ”*” , ”kea-dhcp6” and ”kea-dhcp6.packets” but I can’t see the remote-id in the log. In a tcpdump I can see both option 18 and 37 but I can’t see them in the log.

I testing with Kea 1.1 from GitHub

This is logged now:

2017-02-01 09:38:28.331 INFO  [kea-dhcp6.leases/851] DHCP6_PD_LEASE_RENEW duid=[00:03:00:01:10:62:eb:36:9d:fc], tid=0xc0ed76: lease for prefix 2001:db8:20:100::/56 and iaid=184770717 has been allocated
2017-02-01 09:38:28.331 DEBUG [kea-dhcp6.packets/851] DHCP6_RESPONSE_DATA responding with packet type 7 data is localAddr=[2001:db8:0:1::133]:547 remoteAddr=[2001:db8:0:3502::4]:547
msgtype=7, transid=0xc0ed76
type=00001, len=00010: 00:03:00:01:10:62:eb:36:9d:fc
type=00002, len=00014: 00:01:00:01:20:1d:db:60:00:50:56:8c:53:d1
type=00023, len=00032: 2001:db8::2 2001:db8::3
type=00025(IA_PD), len=00041: iaid=184770717, t1=300, t2=300,
options:
  type=00026(IAPREFIX), len=00025: prefix=2001:db8:20:100::/56, preferred-lft=600, valid-lft=600

/Tobbe

> Another option you may consider is the forensic logging hook library
> logs option 37 if present. See section 13.3.2
> (https://jenkins.isc.org/job/Kea_doc/guide/kea-guide.html#idp1376099460).
> It does not log interface-id (option 18), but it's a minor change. We
> can add it quickly if a customer requests it.
> 
> If neither of those approaches work for you, you can develop your own
> hook library that would print out those two specific options, along with
> whatever extra information you need.
> 
> Hope that helps,
> Tomek
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users




Torbjörn Eklöv | Interlan Gefle AB
Norra Kungsgatan 5, 803 20 Gävle
Växel: 026-18 50 00 | Direkt: 070-683 51 75
http://www.dnssecandipv6.se

"Ever since I can remember I always wanted to use IPv6.
To me that was better than being president of the United States.
To use IPv6 was to own the world."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170201/4d637aee/attachment.bin>


More information about the Kea-users mailing list