dhcp-users Digest V2 #242

Juan C. Crespo R. jcrespo at ifxnw.com.ve
Fri Sep 28 17:04:40 UTC 2007


Dears

    Does anyone of you knows how to test if the DHCP Lease Query its 
enabled? or where I must turn it on in the dhcpd.conf file?

Thanks

DHCP Users Mailing List escribió:
> dhcp-users Digest	Thu, 27 Sep 2007	Volume: 02  Issue: 242
>
> In This Issue:
> 		Re: lease file parsing
> 		RE: lease file parsing
> 		Re: lease file parsing
> 		Re: lease file parsing
> 		Re: lease file parsing
> 		client Windows, Server DHCP Linux and option User Class Info
> 		client Windows, Server DHCP Linux and option User Class Info
> 		Server not honoring "deny unknown-clients" for DHCPINFORM?
>
> ----------------------------------------------------------------------
>
> From: Elliot Finley <efinleywork at efinley.com>
> Subject: Re: lease file parsing
> Date: Wed, 26 Sep 2007 19:29:45 -0600
>
> On Thu, 27 Sep 2007 09:16:35 +1000 (EST), you wrote:
>
>   
>>> From: Elliot Finley <efinleywork at efinley.com>
>>> Date: Wed, 26 Sep 2007 16:50:10 -0600
>>>
>>> Hello,
>>>
>>> I'm writing a script to give me some stats on my leases.  I've found
>>> that there are no leases marked abandoned but I've found that there
>>> are IPs that aren't in the lease file at all (that are in my
>>> configured ranges).  If an IP is not in the lease file, is it
>>> considered abandoned?
>>>
>>> TIA
>>> Elliot
>>>
>>>
>>>       
>> It may not have been assigned or used by any client yet.
>>     
>
> I don't buy that because when I first fired up the server with an
> empty lease file, all the IPs in my configured ranges were added with
> a state of 'free'.
>
> Anyone know the answer to this without guessing?
>
> ------------------------------
>
> From: "Paine, Thomas Asa" <PAINETA at uwec.edu>
> Date: Wed, 26 Sep 2007 20:53:07 -0500
> Subject: RE: lease file parsing
>
> Elliot,
>
> per the dhcpd.leases man page
>
> "Server keeps a persistent database of leases that it has assigned"
>
> "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"
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
>    Thomas Paine {paineta at uwec.edu)}
>    University of Wisconsin - Eau Claire
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> -----Original Message-----
> From: dhcp-users-bounce at isc.org [mailto:dhcp-users-bounce at isc.org] On Behalf Of Elliot Finley
> Sent: Wednesday, September 26, 2007 8:30 PM
> To: dhcp-users at isc.org
> Subject: Re: lease file parsing
>
> On Thu, 27 Sep 2007 09:16:35 +1000 (EST), you wrote:
>
>   
>>> From: Elliot Finley <efinleywork at efinley.com>
>>> Date: Wed, 26 Sep 2007 16:50:10 -0600
>>>
>>> Hello,
>>>
>>> I'm writing a script to give me some stats on my leases.  I've found
>>> that there are no leases marked abandoned but I've found that there
>>> are IPs that aren't in the lease file at all (that are in my
>>> configured ranges).  If an IP is not in the lease file, is it
>>> considered abandoned?
>>>
>>> TIA
>>> Elliot
>>>
>>>
>>>       
>> It may not have been assigned or used by any client yet.
>>     
>
> I don't buy that because when I first fired up the server with an
> empty lease file, all the IPs in my configured ranges were added with
> a state of 'free'.
>
> Anyone know the answer to this without guessing?
>
>
> ------------------------------
>
> Date: Thu, 27 Sep 2007 07:45:03 +0100
> From: Simon Hobson <dhcp1 at thehobsons.co.uk>
> Subject: Re: lease file parsing
>
> Elliot Finley wrote:
>
>   
>>  >>I'm writing a script to give me some stats on my leases.  I've found
>>     
>>>> that there are no leases marked abandoned but I've found that there
>>>> are IPs that aren't in the lease file at all (that are in my
>>>> configured ranges).  If an IP is not in the lease file, is it
>>>>         
>>  >>considered abandoned?
>>     
>
>   
>>  >It may not have been assigned or used by any client yet.
>>     
>
>   
>> I don't buy that because when I first fired up the server with an
>> empty lease file, all the IPs in my configured ranges were added with
>> a state of 'free'.
>>
>> Anyone know the answer to this without guessing?
>>     
>
> If a lease is abandoned then it WILL appear marked as such. All the 
> installations I've ever done have NOT filled the leases file with all 
> configured addresses, they've only appeared once there's been a state 
> change on them - so I don't know what's going on there. The answers 
> you've been given so far are from people who don't have to guess !
>
> What version are you using ?
> Plain vanilla or got any patches applied ?
> Using Failover ?
>
>
>
> ------------------------------
>
> Date: Thu, 27 Sep 2007 10:34:57 +0100
> From: Phil Mayers <p.mayers at imperial.ac.uk>
> Subject: Re: lease file parsing
>
>   
>>> It may not have been assigned or used by any client yet.
>>>       
>> I don't buy that because when I first fired up the server with an
>> empty lease file, all the IPs in my configured ranges were added with
>> a state of 'free'.
>>     
>
> I don't see that. Glenn's answer is correct as I observe the behaviour.
>
> ------------------------------
>
> From: Elliot Finley <efinleywork at efinley.com>
> Subject: Re: lease file parsing
> Date: Thu, 27 Sep 2007 08:32:29 -0600
>
> On Thu, 27 Sep 2007 07:45:03 +0100, you wrote:
>
>   
>> Elliot Finley wrote:
>>
>>     
>>>  >>I'm writing a script to give me some stats on my leases.  I've found
>>>       
>>>>> that there are no leases marked abandoned but I've found that there
>>>>> are IPs that aren't in the lease file at all (that are in my
>>>>> configured ranges).  If an IP is not in the lease file, is it
>>>>>           
>>>  >>considered abandoned?
>>>       
>>>  >It may not have been assigned or used by any client yet.
>>>       
>>> I don't buy that because when I first fired up the server with an
>>> empty lease file, all the IPs in my configured ranges were added with
>>> a state of 'free'.
>>>
>>> Anyone know the answer to this without guessing?
>>>       
>> If a lease is abandoned then it WILL appear marked as such. All the 
>> installations I've ever done have NOT filled the leases file with all 
>> configured addresses, they've only appeared once there's been a state 
>> change on them - so I don't know what's going on there. The answers 
>> you've been given so far are from people who don't have to guess !
>>
>> What version are you using ?
>> Plain vanilla or got any patches applied ?
>> Using Failover ?
>>     
>
> I'm using V3.0.5
> no patches that I know of, I'm using the FreeBSD port
> yes, I'm using failover.
>
> >From the log of the primary server:
>
> Sep 19 20:27:52 dns1 dhcpd: Abandoning IP address 74.214.248.7: pinged
> before offer
>
> This IP doesn't appear anywhere in the lease file.  In fact, I don't
> have *any* IPs marked as abandoned in the lease file, yet I've had
> several abandoned in the log file.
>
> Elliot
>
> ------------------------------
>
> Date: Thu, 27 Sep 2007 18:03:49 +0200
> From: Hermes Collini <collini at perlafinanza.it>
> Subject: client Windows, Server DHCP Linux and option User Class Information
>
> Hi all, I'm trying to configure my dhcpd server (3.0.1) so it can assing 
> an ip address after matching specific value for the option User Class 
> Information. All my client are windows XP SP2 so i set the ClassID on 
> each machine through the command:
>
> ipconfig /setclassid "Con*" "USERCLASS"
>
> Printing the network information i got a result as follow
>
> ----------------------------------------------------------
> Scheda Ethernet Connessione alla rete locale (LAN):
>
>         Suffisso DNS specifico per connessione: dominio.it
>         Indirizzo IP. . . . . . . . . . . . . : 0.0.0.0
>         Subnet mask . . . . . . . . . . . . . : 0.0.0.0
>         Gateway predefinito . . . . . . . . . : 0.0.0.0
>         ID classe DHCP . . . . . . . . . . .  : USERCLASS
>
> -------------------------------------------------------
>
> This is the configuration of my dhcpd server that seems working but it 
> doesn't match anythings
>
> ---------------------------------------------------------------
> #code classid Windows
> option classid code 77 = string;
>
> #Declaration
> class "sistema" {
>         match if substring(option classid,0,7)  = "SYSEDIT";
> }
>
> subnet 10.10.10.0 netmask 255.255.255.0 {
>         authoritative;
>         pool {
>                 allow members of "sistema";
>                 deny unknown-clients;
>                 range 10.10.10.39 10.10.10.40;
>                 }
> }
> ----------------------------------------------------------------
>
> Looking into the packet with a sniffer I found the option information 
> like ascii-code as you can see follow
>
> ------------------------------------------------------------
> Option: (t=77, l=7) User Class Information
>     Option (77) User Class Information
>     Length: 7
>     Value: 53595345444954
> ------------------------------------------------------------
>
> Plaese help me to understand why isn't working and if is possible to get 
>  back work.
>
> thank you
>
> Hermes
>
> ------------------------------
>
> Date: Thu, 27 Sep 2007 19:42:58 +0200
> From: Hermes Collini <collini at perlafinanza.it>
> Subject: client Windows, Server DHCP Linux and option User Class Information
>
> sorry to all, i've my previous post had some typeing errors into the 
> class name. This is the correct one.
>
> Sorry again.
>
>
> Hi all, I'm trying to configure my dhcpd server (3.0.1) so it can assing
> an ip address after matching specific value for the option User Class
> Information. All my client are windows XP SP2 so i set the ClassID on
> each machine through the command:
>
> ipconfig /setclassid "Con*" "USERCLASS"
>
> Printing the network information i got a result as follow
>
> ----------------------------------------------------------
> Scheda Ethernet Connessione alla rete locale (LAN):
>
>         Suffisso DNS specifico per connessione: dominio.it
>         Indirizzo IP. . . . . . . . . . . . . : 0.0.0.0
>         Subnet mask . . . . . . . . . . . . . : 0.0.0.0
>         Gateway predefinito . . . . . . . . . : 0.0.0.0
>         ID classe DHCP . . . . . . . . . . .  : SYSEDIT
>
> -------------------------------------------------------
>
> This is the configuration of my dhcpd server that seems working but it
> doesn't match anythings
>
> ---------------------------------------------------------------
> #code classid Windows
> option classid code 77 = string;
>
> #Declaration
> class "sistema" {
>         match if substring(option classid,0,7)  = "SYSEDIT";
> }
>
> subnet 10.10.10.0 netmask 255.255.255.0 {
>         authoritative;
>         pool {
>                 allow members of "sistema";
>                 deny unknown-clients;
>                 range 10.10.10.39 10.10.10.40;
>                 }
> }
> ----------------------------------------------------------------
>
> Looking into the packet with a sniffer I found the option information
> like ascii-code as you can see follow
>
> ------------------------------------------------------------
> Option: (t=77, l=7) User Class Information
>     Option (77) User Class Information
>     Length: 7
>     Value: 53595345444954
> ------------------------------------------------------------
>
> Plaese help me to understand why isn't working and if is possible to get
> back work.
>
> thank you
>
> Hermes
>
>
> ------------------------------
>
> Date: Thu, 27 Sep 2007 10:47:42 -0700
> From: Chris De Young <chd at chud.net>
> Subject: Server not honoring "deny unknown-clients" for DHCPINFORM?
>
> Hello,
> I have my server configured only to give service to clients whose MAC addresses
> are known, via "deny unknown-clients;".
>
> However, it appears that the server still answers DHCPINFORM messages anyway.
> This is a problem because a client will get a DHCP lease from a local server
> with correct parameters (my server correctly ignores the initial DISCOVER...
> conversation), but then sends a DHCPINFORM a bit later, and my server answers
> with incorrect parameters for its environment.
>
> If the client is unknown and "deny unknown-clients;" is in effect, shouldn't
> DHCPINFORM messages be ignored as well?
>
> I'm running version 3.0.3, but I didn't see any mention of this issue in the
> changes for later releases.  Is this something that's changed in a later release?
>
> Thanks!
> -Chris
>
>
>
> ------------------------------
>
> End of dhcp-users Digest V2 #242
> ********************************
>
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20070928/4c1321d4/attachment.html>


More information about the dhcp-users mailing list