Logging only DHCPACK

Jessica Meyer jessmeyer82 at gmail.com
Fri Feb 20 09:56:14 UTC 2009


Hi there

I have set up a simple log() function in my dhcpd.conf file, which
should log every ip address leased out:

log ( info, concat ( "Lease: ", binary-to-ascii (10, 8, ".", leased-address)));

But now, I'm getting this log message three times per client:

Feb 20 11:52:12 dhcp dhcpd: Lease: 172.27.0.10
Feb 20 11:52:12 dhcp dhcpd: DHCPREQUEST for 172.27.0.10 from
00:18:9b:49:38:e7 via eth0
Feb 20 11:52:12 dhcp dhcpd: DHCPACK on 172.27.0.10 to 00:18:9b:49:38:e7 via eth0
Feb 20 11:53:10 dhcp dhcpd: Lease: 172.27.0.10
Feb 20 11:53:12 dhcp dhcpd: Lease: 172.27.0.10

Is there a way to tell log() to just log DHCPACK messages?

Thanks!



More information about the dhcp-users mailing list