Login  Register

Re: How to use "on commit" with isc-dhcp-server (IPV6)

Posted by Espen Tallaksen on Mar 24, 2015; 10:57am
URL: http://isc-dhcp-users.193.s1.nabble.com/How-to-use-on-commit-with-isc-dhcp-server-IPV6-tp10p14.html

Hi Fabien
I think you have to specify priority,
log (info, ("Something"));


BR
Espen Tallaksen

2015-03-24 11:58 GMT+01:00 Fabien Michalon (fmichalo) <[hidden email]>:
Hi ! 


Thanks for your response. 

I’ve upgraded my dhcp server to the 4.3.2 version and with the same config file, only the “on commit” is executed, nothing happens when the prefix is released or expired. 

Is there something wrong in my config ? If not, how can I execute an action when the prefix is released ? 

Thanks for your help 

Ps : this is my /ec/dhcp/dhcpd.conf : 

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;
    }


From: Shawn Routhier <[hidden email]>
Reply-To: Users of ISC DHCP <[hidden email]>
Date: Friday 20 March 2015 16:27
To: Users of ISC DHCP <[hidden email]>
Subject: Re: How to use "on commit" with isc-dhcp-server (IPV6)


On Mar 20, 2015, at 5:30 AM, Fabien Michalon (fmichalo) <[hidden email]> wrote:

I try to use the "on commit/lease/expiry" trigger in isc-dhcp-server(IPV6 - 4.2.4). 


The on [ commit expiry release ] was upgraded to included support for v6 in 4.3.0.
If you are using 4.2.4 you will need to update.

regards,
Shawn



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


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