- need some help to understand dhcpd.leases

PDA

View Full Version : need some help to understand dhcpd.leases


TchiKiBoum
07-24-2004, 08:47 PM
hi ,
sorry for my english !

I'm new using DHCP.
After reading the dhcpd.leases man page I thought that the binding
state was either active when the IP was given to a workstation or free
when the workstation release the IP and eventually abandonned when
something is wrong.
But when I look at my dhcpd.leases I found that several IP was in a
binding state active and the same hardware address. Did I understand
the man page in a wrong way or is it a configuration problem ?

this my dhcpd.conf

ddns-update-style interim ;
log-facility local0 ;
max-lease-time 3600 ;
default-lease-time 600 ;
option domain-name "mydomain" ;
option domain-name-servers 172.16.0.9 ;
option netbios-name-servers 172.16.0.11 ;

subnet 172.16.0.0 netmask 255.255.0.0 {
range 172.16.19.1 172.16.19.50;
option subnet-mask 255.255.0.0;
option broadcast-address 172.16.255.255;
option routers 172.16.254.1;
}

this is a part of my dhcpd.leases

lease 172.16.19.37 {
starts 4 2003/08/14 14:10:22;
ends 4 2003/08/14 14:20:22;
binding state active;
next binding state free;
hardware ethernet 00:0b:cd:1e:ef:f4;
uid "\001\000\013\315\036\357\364";
set ddns-rev-name = "37.19.16.172.in-addr.arpa.";
set ddns-txt = "31a44b76a6fa4da68085f72bfdf8dcf3e9";
set ddns-fwd-name = "P006328.chlr";
client-hostname "P006328";
}
lease 172.16.19.46 {
starts 4 2003/08/14 14:13:30;
ends 4 2003/08/14 14:23:30;
binding state active;
next binding state free;
hardware ethernet 00:0b:cd:1e:ef:f4;
uid "\001RAS \000\013\315\036\357\364\000\000\000\000\000\000";
client-hostname "P006328";
}
lease 172.16.19.45 {
starts 4 2003/08/14 14:13:30;
ends 4 2003/08/14 14:23:30;
binding state active;
next binding state free;
hardware ethernet 00:0b:cd:1e:ef:f4;
uid "\001RAS \000\013\315\036\357\364\000\000\001\000\000\000";
client-hostname "P006328";
}
lease 172.16.19.37 {
starts 4 2003/08/14 14:15:22;
ends 4 2003/08/14 14:25:22;
binding state active;
next binding state free;
hardware ethernet 00:0b:cd:1e:ef:f4;
uid "\001\000\013\315\036\357\364";
set ddns-rev-name = "37.19.16.172.in-addr.arpa.";
set ddns-txt = "31a44b76a6fa4da68085f72bfdf8dcf3e9";
set ddns-fwd-name = "P006328.chlr";
client-hostname "P006328";
}

I was expecting the @IP 172.16.19.46 and 172.16.19.45 to be free.

Thanks you for your help.

Dave Carrigan
07-24-2004, 08:48 PM
tchikiboum.polo@laposte.net (TchiKiBoum) writes:

> I'm new using DHCP.
> After reading the dhcpd.leases man page I thought that the binding
> state was either active when the IP was given to a workstation or free
> when the workstation release the IP and eventually abandonned when
> something is wrong.
> But when I look at my dhcpd.leases I found that several IP was in a
> binding state active and the same hardware address. Did I understand
> the man page in a wrong way or is it a configuration problem ?

If you read that man page again, you'll see this paragraph:

The lease file is a log-structured file - whenever a lease changes, the
contents of that lease are written to the end of the file. This means
that it is entirely possible and quite reasonable for there to be two
or more declarations of the same lease in the lease file at the same
time. In that case, the instance of that particular lease that
appears last in the file is the one that is in effect.

--
Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL