LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2002, 07:45 PM   #1
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15
dhcpd server not letting go of leases


my dhcpd server is not letting go of the leases. Is this common? I have computers not even attached to the network which still have a leased dhcp address. any thoughts on this?
 
Old 01-15-2002, 01:30 AM   #2
FunkFlex
Member
 
Registered: Jan 2002
Location: UK
Distribution: Redhat 7.2
Posts: 35

Rep: Reputation: 15
DHCPd letting go of leases too soon!!

Well i'm having the exact opposite of u..

my max lease time is 7200 (is that in sec or mins?)
instead each client has IP address for only 2 minutes or less, and then requests for a new (or same in my case) IP address

do i need to change default-lease to a higher number

default-lease-time 600;
max-lease-time 7200;

 
Old 01-15-2002, 05:59 AM   #3
hommih
Member
 
Registered: Oct 2001
Location: Norway
Distribution: SuSE 7.0, Red Hat 7.2
Posts: 32

Rep: Reputation: 15
Have you checked out dhcpd.leases Jase? Probably in /var/state/dhcp/, or similar...

Hommi
 
Old 01-15-2002, 07:41 AM   #4
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
hommith,
yes thats why I am post this thread


default-lease-time 86400;
max-lease-time 604800;


here is what I am running for lease times,.......should I tweak this any?
 
Old 01-15-2002, 10:38 AM   #5
hommih
Member
 
Registered: Oct 2001
Location: Norway
Distribution: SuSE 7.0, Red Hat 7.2
Posts: 32

Rep: Reputation: 15
Okay, so the leases in dhcpd.leases for the computers that no longer are attached to the network has expired, but the addresses are still reserved... strange

Is it more than 7 days since you removed those computers?

Hommi
 
Old 01-15-2002, 06:37 PM   #6
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
Code:
lease 192.168.1.38 {
        starts 0 2002/01/06 19:24:21;
        ends 1 2002/01/07 19:24:21;
        hardware ethernet 00:03:6d:1c:7d:f6;
        uid 01:00:03:6d:1c:7d:f6;
        client-hostname "Jase";

this is still in my dhcpd.leases lol
 
Old 01-15-2002, 06:39 PM   #7
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
also what does this mean?

Code:
Shutting down dhcpd: [  OK  ]
Starting dhcpd: SIOCADDRT: File exists
[  OK  ]
 
Old 01-16-2002, 09:20 AM   #8
hommih
Member
 
Registered: Oct 2001
Location: Norway
Distribution: SuSE 7.0, Red Hat 7.2
Posts: 32

Rep: Reputation: 15
You probably have to clean up your dhcpd.leases yourself, if you don't want old leases to be in there. When a lease is given it starts at a given time and date, and ends after the default lease time has expired. In your case this is 86400s ( = 24 h ). The ip-address becomes available to other hosts after the max lease time has expired, which in your case is 604800s ( = 7 days ).
So that means that your ip 192.168.1.38 is probably available again ( became available on 2002/01/06 19:24:21 + 7 days = 2002/01/13 19:24:21 ), even though the lease still excists in dhcpd.leases.

And, about that last message: have no idea...

Hommi
 
Old 01-16-2002, 09:58 AM   #9
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Rep: Reputation: 16
Arrow "SIOCADDRT: File exists" message

Jase,

I was receiving the same message for some time--not only does it appear to be harmless, but also easy to eliminate.

The script which I was using to control the dhcp daemon contained a line which was trying to add a route to 255.255.255.255 every time the script was executed.

A temporary fix was to remove "route add -host 255.255.255.255 dev eth0" from the script. Ideally, I'd like to add to the script a test for the above route, only adding it should it not already exist.

"route -n | grep -c "255.255.255.255" works well enough from the command line, now I just have to figure out how to execute it properly from the script.


Stay tuned...

-d.

Last edited by dguy; 01-17-2002 at 08:38 AM.
 
Old 01-17-2002, 05:54 PM   #10
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
ahh good call,.....I had already added the route,...but was still trying to call it in the startup script,....../me is dumb thanks bro
 
Old 01-17-2002, 05:57 PM   #11
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Original Poster
Rep: Reputation: 15
ohh for the route,....just add a route like this

255.255.255.255 dhcp I added this to my host table,...restart networking and blam,...all done
 
  


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 Has No free leases? FishGills Linux - Networking 7 01-24-2009 06:49 PM
find out all free leases from dhcpd saavik Linux - Networking 2 07-27-2005 02:03 AM
dhcpd server leases wont work :( hath Linux - Networking 4 02-21-2002 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:07 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