Playing with dhcpd

July 8, 2009


Yes! At work today we made dhcpd crash on a /etc/dhcpd.conf :) We were working towards the following (now working) setup:

class "igel" {
    match if binary-to-ascii(16, 8, "-", substring (hardware, 0, 5)) = "1-0-e0-c5-67";
pool {
    allow members of "igel"; 
    range; # igel[0-9]

But while figuring this out, dhcpd went boom :)

[root@vmaster cfengine]# dhcpd -d -f -cf hosts/vnet/etc/dhcpd.conf
Internet Systems Consortium DHCP Server V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit
hosts/vnet/etc/dhcpd.conf line 20: can't override match.
    match if 
hosts/vnet/etc/dhcpd.conf line 22: pool declared outside of network pool
Segmentation fault