Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-14-2002, 07:45 PM
|
#1
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Rep:
|
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?
|
|
|
01-15-2002, 01:30 AM
|
#2
|
Member
Registered: Jan 2002
Location: UK
Distribution: Redhat 7.2
Posts: 35
Rep:
|
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;

|
|
|
01-15-2002, 05:59 AM
|
#3
|
Member
Registered: Oct 2001
Location: Norway
Distribution: SuSE 7.0, Red Hat 7.2
Posts: 32
Rep:
|
Have you checked out dhcpd.leases Jase? Probably in /var/state/dhcp/, or similar...
Hommi
|
|
|
01-15-2002, 07:41 AM
|
#4
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Original Poster
Rep:
|
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?
|
|
|
01-15-2002, 10:38 AM
|
#5
|
Member
Registered: Oct 2001
Location: Norway
Distribution: SuSE 7.0, Red Hat 7.2
Posts: 32
Rep:
|
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
|
|
|
01-15-2002, 06:37 PM
|
#6
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Original Poster
Rep:
|
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
|
|
|
01-15-2002, 06:39 PM
|
#7
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Original Poster
Rep:
|
also what does this mean?
Code:
Shutting down dhcpd: [ OK ]
Starting dhcpd: SIOCADDRT: File exists
[ OK ]
|
|
|
01-16-2002, 09:20 AM
|
#8
|
Member
Registered: Oct 2001
Location: Norway
Distribution: SuSE 7.0, Red Hat 7.2
Posts: 32
Rep:
|
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
|
|
|
01-16-2002, 09:58 AM
|
#9
|
Member
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119
Rep:
|
"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.
|
|
|
01-17-2002, 05:54 PM
|
#10
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Original Poster
Rep:
|
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
|
|
|
01-17-2002, 05:57 PM
|
#11
|
Member
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113
Original Poster
Rep:
|
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 
|
|
|
All times are GMT -5. The time now is 09:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|