Logging all DHCP-Packages

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Logging all DHCP-Packages

Meike Stone
Hello dear list,

is it possible, to log packages where message types other than 1, 3 or 8?

I tried to test that with:

if option dhcp-message-type = 1  {log (info, "msgtype 1"); }
if option dhcp-message-type = 2  {log (info, "msgtype 2"); }
if option dhcp-message-type = 3  {log (info, "msgtype 3"); }
if option dhcp-message-type = 4  {log (info, "msgtype 4"); }
if option dhcp-message-type = 5  {log (info, "msgtype 5"); }
if option dhcp-message-type = 6  {log (info, "msgtype 6");}
if option dhcp-message-type = 7  {log (info, "msgtype 7");}
if option dhcp-message-type = 8  {log (info, "msgtype 8");}

DHCPRELEASE of 192.168.1.100 from 3f:a5:c7:08:47:a7 via eth0 (not found)
msgtype 1
DHCPDISCOVER from 3f:a5:c7:08:47:a7 via eth0
DHCPOFFER on 192.168.1.100 to 3f:a5:c7:08:47:a7 via eth0
msgtype 3
DHCPREQUEST for 192.168.1.100 (192.168.234.24) from 3f:a5:c7:08:47:a7 via eth0
DHCPACK on 192.168.1.100 to 3f:a5:c7:08:47:a7 via eth0
msgtype 8
DHCPINFORM from 192.168.1.100 via eth0
DHCPACK to 192.168.1.100 (3f:a5:c7:08:47:a7) via eth0

Is there a posibility to log the other message types too?

Thanks meike
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users