on expiry

Jon Otterholm jon.otterholm at ide.resurscentrum.se
Thu Sep 21 14:45:16 UTC 2006


Hi.

When using the "on expiry"-event in dhcpd the dhcpd-daemon exits with:

dhcpd: bogus statement type 21

This is my conf:

option domain-name "example.org";

default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;

authoritative;


subnet 10.1.1.0 netmask 255.255.255.0 {
  range 10.1.1.10 10.1.1.100;
  option routers 10.1.1.1;
  default-lease-time 60;
  max-lease-time 7200;
}


on commit { exec("/usr/scripts/bridge0/commit.sh", binary-to-ascii(10, 
8, ".", leased-address));
}

on expiry { exec("/usr/scripts/bridge0/release.sh", binary-to-ascii(10, 
8, ".", leased-address));
}

When I remove the "on expiry"-event it works fine.

I have worked on this for days now without a solution.

Any suggestions out there?

/Jon


More information about the dhcp-users mailing list