Logging all DHCP-Packages

Meike Stone meike.stone at googlemail.com
Wed Oct 10 14:18:58 UTC 2018


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


More information about the dhcp-users mailing list