dhcpd mystery

Timothy Murphy gayleard at eircom.net
Wed Jan 30 14:55:18 UTC 2008


John Summerfield wrote:

> For PXE I might give a short lease, it's only going to run for a few
> seconds, and Anaconda maybe an hour or so.
> 
> I do give different answers, depending on who's asking.

How do you change the lease-time for different machines?

I'm puzzled by the different lease-times I get on different laptops,
connecting to the same desktop.

The laptop I'm on now gets about 30 minutes:
--------------------------------
Jan 30 13:53:18 mary dhclient: DHCPREQUEST on eth1 to 192.168.2.1 port 67
Jan 30 13:53:18 mary dhclient: DHCPACK from 192.168.2.1
Jan 30 13:53:18 mary dhclient: bound to 192.168.2.19 -- renewal in 1687
seconds.
--------------------------------

Another laptop gets about 3 hours:
--------------------------------
Jan  7 14:36:11 carrie dhclient: DHCPREQUEST on eth0 to 192.168.2.1 port 67
Jan  7 14:36:11 carrie dhclient: DHCPACK from 192.168.2.1
Jan  7 14:36:11 carrie dhclient: bound to 192.168.2.4 -- renewal in 9591
seconds.
--------------------------------

Who or what exactly decides on these lease-times?
The entries for the 2 laptops in /etc/dhcpd.conf on the desktop 
are identical:
--------------------------------
        host carrie {
                hardware ethernet 00:15:00:16:2A:EA;
                fixed-address 192.168.2.4;
        }

        host mary {
                hardware ethernet 00:02:2D:21:03:B1;
                fixed-address 192.168.2.19;
        }
--------------------------------

The only difference I see is that mary is running Fedora-8
while carrie is running Fedora-7.

Any elucidation gratefully received.



-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland




More information about the fedora-list mailing list