LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-26-2014, 06:24 AM   #1
nishith
Member
 
Registered: Aug 2008
Posts: 148

Rep: Reputation: 15
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
 
Old 02-27-2014, 01:55 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP lease same IP prashanlk Linux - Networking 2 01-31-2008 03:22 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Requesting a new DHCP lease raypen Linux - Networking 2 06-07-2006 09:19 PM
Renewing DHCP Lease JimKyle Linux - Networking 10 07-18-2004 06:54 PM
dhcp - get new IP when lease renewed chrisnewey Linux - Networking 0 03-30-2004 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration