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 10-11-2010, 02:15 AM   #1
phongnh
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
Delete leases from dhcpd.leases when remove a subnet from dhcpd.conf


Hi all!

I'm configuring DHCP server using dhcpd. When I remove a subnet from dhcpd.conf file, the leases of that subnet still in the dhcpd.leases file.

Is there any parameter in the dhcpd.conf file tell the dhcpd delete leases from dhcpd.leases file when their subnet is removed from dhcpd.conf.

Thanks!
 
Old 10-12-2010, 04:36 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I am not aware of and didn't see a command in the documentation to flush the leases file. The file is typically appended and the old, inactive leases typically remain with it being normal to see multiple entries for a particular host. The entries don't hurt anything. though if it really bothers you, you should be able to go in and manually delete them. You may want to stop the DHCP server before editing the file and then restart it afterwards.
 
Old 10-12-2010, 04:49 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
Check this:

http://linuxreviews.org/man/dhcpd.leases/
 
  


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
DHCPD problem - no free leases ms_lyon Linux - Networking 4 05-29-2017 01:42 PM
DHCPD no free leases HiOctane21 Linux - Networking 6 10-02-2013 11:21 PM
dhcpd.leases & mysql koscek Programming 3 07-31-2010 10:49 AM
DHCPD Has No free leases? FishGills Linux - Networking 7 01-24-2009 06:49 PM
dhcpd.leases desertwanderer Linux - Server 0 10-25-2007 03:39 PM

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

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

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