[Kea-users] debug logging not displaying boot file option in offer

Jason Lixfeld jason-kea at lixfeld.ca
Fri Sep 15 19:21:10 UTC 2017


Hi,

For the longest time, I thought I had some odd configuration error because I would never see bootfile in the options output of the Kea debug, despite me having set it in the config:

2017-09-15 14:27:24.742 DEBUG [kea-dhcp4.packets/631] DHCP4_RESPONSE_DATA [hwtype=1 00:01:47:e3:2f:60], cid=[00:31:34:38:38:38:38:30], tid=0x4d5cccc: responding with packet DHCPACK (type 5), packet details: local_address=10.219.66.10:67, remote_address=10.219.45.114:67, msg_type=DHCPACK (5), transid=0x4d5cccc,
options:
  type=001, len=004: 4294967040 (uint32)
  type=006, len=008: 66.207.192.4 206.223.173.6
  type=051, len=004: 60 (uint32)
  type=053, len=001: 5 (uint8)
  type=054, len=004: 10.219.66.10
  type=058, len=004: 900 (uint32)
  type=059, len=004: 1800 (uint32)
  type=061, len=008: 00:31:34:38:38:38:38:30
  type=082, len=058:,
options:
    type=001, len=006: 00:04:0c:37:02:01
    type=002, len=011: 01:09:72:67:77:30:31:2e:6c:61:62
    type=005, len=004: 0a:3f:ff:00
    type=151, len=023: 00:72:65:73:69:64:65:6e:74:69:61:6c:2d:6d:61:6e:61:67:65:6d:65:6e:74
    type=152, len=004: 0a:3f:ff:01

But in a recent tcpdump, I in fact do see the option getting sent by Kea:

14:27:24.742363 IP (tos 0x0, ttl 64, id 37950, offset 0, flags [DF], proto UDP (17), length 382)
    10.219.66.10.67 > 10.219.45.114.67: [bad udp cksum 0x86ad -> 0xb5f1!] BOOTP/DHCP, Reply, length 354, hops 1, xid 0x4d5cccc, Flags [none] (0x0000)
	  Client-IP 10.63.255.209
	  Your-IP 10.63.255.209
	  Gateway-IP 10.219.45.114
	  Client-Ethernet-Address 00:01:47:e3:2f:60
	  file "foopoo"[|bootp]

Is there any way to be able to see this in the logs?

{
	"Logging": {
		"loggers": [
			{
				"name": "kea-dhcp4",
				"output_options": [
					{
						"output": "/var/log/kea/kea-dhcp4.log"
					}
				],
				"severity": "DEBUG",
				"debuglevel": 99
			},
		]
	}
}

Thanks!


More information about the Kea-users mailing list