Dhcpd fixed-address leases
Gregory Sloop
gregs at sloop.net
Fri Nov 6 22:24:56 UTC 2015
What is the appropriate way to see lease information on ISC dhcpd 4.2.2 for hosts defined with a fixed-address? For example, say I have this config:
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.1;
option subnet-mask 255.255.255.0;
}
group {
host some.host.tld {
hardware ethernet 00:11:22:33:44:55;
fixed-address 10.0.0.2
}
[...]
}
I am able to see in my dhcpd logs the full transaction (discover/offer/request/ack) between the client and server. However, when I look at the leases file or try to look for a lease object with the client's IP in omshell, the lease for that IP is not there. For what it's worth, leases given to clients from pool declarations are present. Should I be looking elsewhere, or is the dhcpd log the only place I can check to see if a client has requested a lease and given a fixed-address?
>However, when I look at the leases file or try to look for a lease object with the client's IP in omshell, the lease for that IP is not there
That is normal/as-designed. Since everything needed to determine the lease given is already present in the config file, there's no need to put anything about these leases in the leases file. [There's no need to keep track of expiration, etc - it doesn't matter to the server.]
AFAIK, the only place you'll see record of it, is in the log files.
-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20151106/10977a4f/attachment.html>
More information about the dhcp-users
mailing list