I try to use the "on commit/lease/expiry" trigger in isc-dhcp-server(IPV6 - 4.2.4).
I made prefix delegation, and I have problem with updadting routing table, so i want to use the isc dhcp triggers to manually update routing tables when a commit or release happen.
First I make a simple test but it doesn't work, I have disabled ddns-update according to the documentation but nothing happens. I don't have any error when I start the server.
my /etc/dhcp/dhclient6.conf is like this :
option dhcp6.domain-search "foo.net";
option dhcp6.name-servers X:X:X::X, X:X:X::X;
option dhcp6.preference 255;
default-lease-time 7200;
max-lease-time 14400;
authoritative;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
ddns-update-style none;
log-facility local7;
on commit {log("========COMMIT===========");}
on expiry { log("=======EXPIRY==========="); }
on release { log("=======RELEASE========="); }
subnet6 2001:db8:0::/48 {
#I have also tried to put the on commit/expiry/release here (but it stil doesn’t work)
}
subnet6 2001:db8::/32 {
#I have also tried to put the on commit/expiry/release here (but it stil doesn’t work)
}
#One client example, I have 4000 others like this :
host client1 {
#I have also tried to put the on commit/expiry/release here (but it stil doesn’t work)
host-identifier option dhcp6.client-id X:X:X:X:X:X:X:X:X:X;
fixed-address6 2001:0db8:3000::1;
fixed-prefix6 2001:0db8:3000::/48;
}
I've tried to put the triggers in the "host client1" scope and in the subnets scopes but it is the same: nothing happens.
The DHCP server works properly because the client receive its prefix but the text is not added to the log. (And when I try to use execute function like `on commit { execute("/home/user/myscript");}` the script is not executed)
So Have I make something wrong ? Or if someone have an idea to make it works?
Thanks in advance for your responses :)