Logging every packet that the DHCP server receives
sven.seelemann at alcatel-lucent.com
Fri Oct 12 18:07:51 UTC 2012
I'm trying to determine why some class declarations of mine are fail -
for a pool of over a thousand IPs I'm receiving an awful lot of "no free
I'm trying to print via the log command parts of the DHCP packet. My log
statements are before class statements as well as before the network
description with its subnets and pools. That is, I think they should be
global in scope.
Unfortunately, when I run in debug mode (or in deamon mode, fwtw) all I
get are the "no free leases" error - I don't see my log message(s). In
fact, the log message only shows up when the corresponding DHCP request
My log statements:
# To find the relay agent IP address...
log (info, concat("Packet has ->", binary-to-ascii(16, 8, ":",
# To find the string added by the as a vendor supplied option...
#log (info, concat("Packet has in hex ->", binary-to-ascii(16, 8, ":",
packet(346,4)), "<- or raw ->", packet(346,4)));
log (info, concat("Packet has in hex ->", binary-to-ascii(16, 8, ":",
packet(388,4)), "<- or raw ->", packet(388,4)));
Any pointers on how to make dhcpd a little more verbose about what it
Thanks in advance,
Sven A. Seelemann, P. Eng.
600 March Road, PO Box 13600
Ottawa, Ontario, CANADA K2K 2E6
email: sven.seelemann at alcatel-lucent.com
More information about the dhcp-users