DHCPv6 equivalent of leased-address

Stafford, Paige L. staffordp1 at ornl.gov
Fri Mar 22 12:48:48 UTC 2013

Good Job!!  Very useful information.

From: Wim Vandersmissen <Wim.Vandersmissen at icts.kuleuven.be<mailto:Wim.Vandersmissen at icts.kuleuven.be>>
Reply-To: Users of ISC DHCP <dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>>
Date: Friday, March 22, 2013 8:10 AM
To: "Users of ISC DHCP (dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>)" <dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>>
Subject: RE: DHCPv6 equivalent of leased-address

To answer my own question :)
I fixed this by doing this:

option dhcp6.leased-address code 194 = string;
option dhcp6.leased-address = binary-to-ascii(16,16, ":", substring(suffix(option dhcp6.ia-na, 24),0,16));

Combined with
option dhcp6.macaddr code 193 = string;
option dhcp6.macaddr = binary-to-ascii(16, 8, ":", suffix(option dhcp6.client-id, 6));

You can log
log (info, concat ("Lease for ",config-option dhcp6.leased-address, " leased to ", config-option dhcp6.macaddr));

Which shows you
Mar 22 12:04:11 dhcp1 dhcpd: Lease for 2001:0db8:100:b400:0:0:0:4e8 leased to 0:21:64:98:ab:fd


From: Wim Vandersmissen
Sent: donderdag 21 maart 2013 15:48
To: Users of ISC DHCP (dhcp-users at lists.isc.org<mailto:dhcp-users at lists.isc.org>)
Subject: DHCPv6 equivalent of leased-address


Anyone knows what the DHCPv6 equivalent of ‘leased-address’ data expression is ?



More information about the dhcp-users mailing list