From which DHCP-Server gets a client his IP address/lease?

  • Follow


Is there a possibility to get the clients DHCP server from where the 
client obtains his lease/IP address without knowing which DHCP client 
is in use (dhcpcd, pump, etc)? Perhaps somewhere in /proc???

Thanks in advance for any advice.

R.
 

0
Reply not13 (52) 4/11/2008 11:06:37 AM

Robert Langdon wrote:
> Is there a possibility to get the clients DHCP server from where the 
> client obtains his lease/IP address without knowing which DHCP client is 
> in use (dhcpcd, pump, etc)? Perhaps somewhere in /proc???
> 
> Thanks in advance for any advice.
> 
> R.

The storage places for the lease information depends
on both the Linux distribution and the selected DHCP
client daemon (and maybe daemon configuration file):


For Debian with dhcp3:
----------------------

/var/log/daemon.log:

Apr 11 00:24:10 miranda dhclient: DHCPREQUEST on eth0 to 88.195.96.1 port 67
Apr 11 00:24:10 miranda dhclient: DHCPACK from 88.195.96.1
Apr 11 00:24:10 miranda dhclient: bound to 88.195.108.xxx -- renewal in 
20875 seconds.

/var/lib/dhcp3/dhclient.eth0.leases:

lease {
   interface "eth0";
   fixed-address 88.195.108.xxx;
   option subnet-mask 255.255.224.0;
   option routers 88.195.96.1;
   option dhcp-lease-time 43200;
   option dhcp-message-type 5;
   option domain-name-servers 193.210.19.19,192.89.123.29;
   option dhcp-server-identifier 88.195.96.1;
   option domain-name "dsl.inet.fi";
   renew 5 2008/4/11 14:59:42;
   rebind 5 2008/4/11 19:39:17;
   expire 5 2008/4/11 21:09:17;
}

(The IP address is slightly fudged due to publicity).

Please note that the access to the files may be limited
to root only.

HTH

-- 

Tauno Voipio
tauno voipio (at) iki fi
0
Reply tauno.voipio (652) 4/11/2008 2:53:00 PM


On 2008-04-11, in <2008041113063716807-not@homenet> Robert
Langdon <not@home.net> wrote:

> Is there a possibility to get the clients DHCP server from where the 
> client obtains his lease/IP address without knowing which DHCP client 
> is in use (dhcpcd, pump, etc)? Perhaps somewhere in /proc???
>
> Thanks in advance for any advice.

You can get that from running a packet logger, like tethereal, on the
eth? interface.

If you don't have the root priveleges meeded to do that, then the
IP you want is probably none of your business.


Tom

-- 
The Truth will set you free:
http://www.sethcenter.com

0
Reply tom2537 (107) 4/11/2008 3:49:10 PM

On 2008-04-11 17:49:10 +0200, Tom Newton <tom@server.invalid> said:

> On 2008-04-11, in <2008041113063716807-not@homenet> Robert
> Langdon <not@home.net> wrote:
> 
>> Is there a possibility to get the clients DHCP server from where the
>> client obtains his lease/IP address without knowing which DHCP client
>> is in use (dhcpcd, pump, etc)? Perhaps somewhere in /proc???
>> 
>> Thanks in advance for any advice.
> 
> You can get that from running a packet logger, like tethereal, on the
> eth? interface.
> 
> If you don't have the root priveleges meeded to do that, then the
> IP you want is probably none of your business.
> 
> 
> Tom


Hello Tom, hi Tauno,

Thank you for the helpfull comments.

Cheers,

R.

0
Reply not13 (52) 4/14/2008 8:23:27 AM

3 Replies
36 Views

(page loaded in 0.073 seconds)

Similiar Articles:









7/6/2012 12:10:32 AM


Reply: