ipv6 Lease database

Shawn Routhier sar at isc.org
Fri Aug 31 07:33:02 UTC 2012

On Aug 30, 2012, at 11:50 PM, Simon Hobson wrote:

> Amit wrote:
>> Where is lease database is stored for ipv6 lease before writing it to lease file (/var/lib/dhcpd/dhcpv6.lease).
>> Can we query lease database to get certain information like, client DUID, ipv6 address leases, lease expiration time etc.
> I assume it's the same as the IPv4 server - all the data is held internally in in-memory tables. The lease file is only there to provide persistence - it's read once only at startup and is otherwise never read by the server process.


> For querying data, take a look at OMSHELL - I believe there are man pages for it.

As to the original question - how do you get the duid for a client from the lease file?
It is in the lease file as "ia-na", "ia-ta" or "ia-pd" with the IAID prepended
to it.

More information about the dhcp-users mailing list