Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27460

Summary: dhclient does not store it's lease info in /var/lib/dhcp/dhclient.leases
Product: Gentoo Linux Reporter: Eric Pretorious <epretorious>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: maxwang_tw
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 31840    

Description Eric Pretorious 2003-08-28 00:40:37 UTC
/var/lib/dhcp/dhclient.leases is empty (after successfully negotiating a lease
with a DHCP server).

Reproducible: Always
Steps to Reproduce:
1. Set iface_eth0="dhcp" in /etc/conf.d/net
2. connect computer to network where there's a DHCP server working.
3. (Without any dhclient.conf file) start dhcp by issuing /etc/init.d/net start
4. Check `config -a` to verify that networking has been configured.
Actual Results:  
/var/lib/dhcp/dhclient.leases remains empty

Expected Results:  
/var/lib/dhcp/dhclient.leases should contain lease info about the current
network configuration.

from the dhclient man-page:

In order to keep track of leases across system reboots and server restarts,
dhclient keeps a list of leases it has been assigned in the dhclient.leases(5)
file.... When a new lease is acquired, it is appended to the end of the
dhclient.leases file.

The DHCP client normally gets its configuration information from 
ETCDIR/dhclient.conf, its lease database from DBDIR/dhclient.leases,  stores its
process ID in a file called RUNDIR/dhclient.pid, and configures the network
interface using CLIENTBINDIR/dhclient-script
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-08-28 00:41:42 UTC

*** This bug has been marked as a duplicate of 27079 ***
Comment 2 Eric Pretorious 2003-10-02 15:30:20 UTC
This bug is NOT a duplicate of 27079: Bug 27079 relates to dhcpd-3.0. This
bug relates to dhcpcd-1.3.
Comment 3 Max Kalika (RETIRED) gentoo-dev 2003-10-02 15:45:22 UTC
Eric, in your original comment, you describe things that are related to dhcp
(not dhcpcd).  I.e. /var/lib/dhcp/dhclient.leases is part of dhcp.  The client
program dhcpcd has nothing to do with that file -- it uses /var/lib/dhcpc
in which it places a file like "dhcpcd-eth0.info".  Therefore, obviously,
dhclient.leases will remain empty.  Please confirm that /var/lib/dhcpc/dhcpcd-eth0.info
gets populated with some data.
Comment 4 Eric Pretorious 2003-10-02 16:14:33 UTC
You are correct! I apologize.

Did I misread the documentation?...

from the dhclient man-page:

In order to keep track of leases across system reboots and server restarts,
dhclient keeps a list of leases it has been assigned in the dhclient.leases(5)
file.... When a new lease is acquired, it is appended to the end of the
dhclient.leases file.

The DHCP client normally gets its configuration information from 
ETCDIR/dhclient.conf, its lease database from DBDIR/dhclient.leases,  stores
its
process ID in a file called RUNDIR/dhclient.pid, and configures the network
interface using CLIENTBINDIR/dhclient-script

...or is it just wrong?