LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   DHCP Lease File Error (https://www.linuxquestions.org/questions/linux-server-73/dhcp-lease-file-error-4175496260/)

nishith 02-26-2014 06:24 AM

DHCP Lease File Error
 
Hello,

I have configured dhcp server on RHEL 6 & found working properly. The default lease time is 86400 seconds, means 1 day for client computer.

Now, Since last 2 days, I am facing strange problem in DHCP Server. The scenario is as given below.

* DHCP IP Address Pool Range is 192.168.1.10 to 192.168.1.20
* DHCP has assigned "192.168.1.14" IP address to my laptop.
* After an hour, if I disconnect & reconnect the network cable, DHCP Server will assign another IP Address!!!

* Means, DHCP has provided 2 IP Addresses to my laptop, but actually I need only one.

* Added to this, /var/lib/dhcpd/ directory contains 1 additional file. The names are given below.

dhcpd.leases
dhcpd.leases~

Now, what is the mean of "dhcpd.leases~" file?

That file will be created automatically when disconnect & reconnect my laptop cable to get IP Address from DHCP Server.

Can someone have the proper solution?

Pls Note: I am using DHCP in failover mode. Means, there are 2 DHCP Servers in my network in active passive mode.

Please acknowledge if possible,
Nishith

Berhanie 02-27-2014 01:55 AM

have you checked the man page?

Quote:

In order to prevent the lease database from growing without bound, the file is rewritten from time to time. First, a temporary lease database is created and all known leases are dumped to it. Then, the old lease database is renamed /var/lib/dhcpd/dhcpd.leases~. Finally, the newly written lease database is moved into place.


All times are GMT -5. The time now is 07:18 AM.