No Duid field in lease database
Glenn Satchell
glenn.satchell at uniq.com.au
Sat Aug 25 00:09:58 UTC 2012
In my dhcpd.conf I have a line like this:
set vendor-string = option vendor-class-identifier;
which results in a leases file that looks like this (note the
vendor-string variable):
lease 192.168.14.217 {
starts 3 2012/07/11 11:01:39;
ends 3 2012/07/11 11:03:39;
tstp 3 2012/07/11 11:03:39;
cltt 3 2012/07/11 11:01:39;
binding state free;
hardware ethernet ec:55:f9:ad:03:a2;
set vendor-string = "dhcpcd 4.0.15";
}
You may be able to do something similar with the DUID, perhaps using
"option dhcp6.client-id".
regards,
-glenn
On Fri, August 24, 2012 10:25 pm, Amit wrote:
> Hi,
>
>
>
> In the lease database which is stored in "/var/lib/dhcpd/dhcpd6.leases",
> there is no DUID field.
>
> Is there any way to introduce DUID field into lease database so that ipv6
> clients can be differentiated based on that field.
>
>
>
> Why this is required is: I am planning to write a script which queries
> dhcpd6.leases file to get the lease information of the clients and showing
> them onto a portal for management.
>
> Fields required are : clients DUID, ipv6 address leased, lease date ,
> preferred and max-life time. All the fields except DUID are there in
> dhcpd6.leases file.
>
> Based on the above data, I also like to make client ipv6 address
> reservation
> based on DUID.
>
>
>
> Please suggest, or If it is there any other database which carries such
> information, please let me know the way to query that lease database.
>
>
>
> --
>
> Thanks & Regards
>
>
>
> Amit Kumar
>
> Scientific Officer
>
> Operation and Routing Group
>
> M/O Communication and IT, NIC A- Block, CGO Complex, New Delhi
>
> Ph. 24305091
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list