DHCPD 4.1.0 not writing leases to dhcpd.leases for fixed ip addresses
Glenn Satchell
Glenn.Satchell at uniq.com.au
Wed Jul 8 12:21:23 UTC 2009
Hi Jess
That's completely normal behaviour. To the client it looks like a lease
is allocated and so on, but on the server the fixed-address clients go
through a completely different code path. They do not go through the
same lease allocation routines, so the lease is not recorded in
dhcpd.leases. This has been a feature of ISC dhcpd since the first
version over 10 years ago.
Instead of using a fixed-address statement, you may want to use a
reserved lease. This is somewhat like doing a dynamic allocation but
the lease is allocated only to this host. These lease do go through the
normal lease allocation routines and are written in dhcpd.leases. See
the dhcpd.conf man page and search for "RESERVED LEASES" section.
regards,
-glenn
--
Glenn Satchell mailto:glenn.satchell at uniq.com.au | I telephoned the
Uniq Advances Pty Ltd http://www.uniq.com.au | swine flu info
PO Box 70 Paddington NSW Australia 2021 | line and all I got
tel:0409-458-580 tel:02-9380-6360 fax:02-9380-6416 | was crackling.
>Date: Wed, 8 Jul 2009 09:49:01 +0200
>Subject: DHCPD 4.1.0 not writing leases to dhcpd.leases for fixed ip addresses
>From: Jessica Meyer <jessmeyer82 at gmail.com>
>To: dhcp-users at lists.isc.org
>
>Hi list
>
>I'm having a strange issue on a ISC DHCP 4.1.0 server. I have both
>dynamic and "static" IPs in several subnets. Now if a client requests
>a dynamic address (i.e. an IP address in a "range" context),
>everything works as expected. The server gives out the IP address and
>all other options that I have configured, and creates an entry in the
>server's dhcpd.leases file.
>
>I have several devices that have "fixed" IP addresses, configured like this:
>
>host 00xxyyzzaabbcc {
> hardware ethernet 00:xx:yy:zz:aa:bb:cc;
> fixed-address 10.10.2.48;
>}
>
>If the device with MAC address 00:xx:yy:zz:aa:bb:cc requests an IP
>address, the DHCP server does offer him 10.10.2.48 and nothing else -
>which is what I want. The interesting thing is that it does not write
>a lease definition in the dhcpd.leases file, which I don't unterstand.
>
>How can I force the DHCP server to write that lease to the
>dhcpd.leases file too?
>
>Regards,
>Jess
>_______________________________________________
>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