Networking Forums

Networking Forums > Computer Networking > Linux Networking > need some help to understand dhcpd.leases

Reply
Thread Tools Display Modes

need some help to understand dhcpd.leases

 
 
TchiKiBoum
Guest
Posts: n/a

 
      08-14-2003, 01:38 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.
 
Reply With Quote
 
 
 
 
Dave Carrigan
Guest
Posts: n/a

 
      08-14-2003, 03:25 PM
(E-Mail Removed) (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
(E-Mail Removed) | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd complaining about dynamic and static leases rsesnaski@yahoo.com Linux Networking 2 02-12-2006 03:27 PM
DHCP leases from old box to new box. edavid3001@gmail.com Linux Networking 4 11-11-2005 11:26 PM
dhcpd - No Free Leases NAV Linux Networking 6 09-08-2005 04:33 AM
dhcpd new leases Win98 machines julien mills Linux Networking 10 08-05-2005 04:25 AM
isc dhcpd: update-static-leases not working Mark Dammer Linux Networking 0 06-24-2003 04:11 PM



1 2 3 4 5 6 7 8 9 10 11