Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-06-2002, 09:30 AM   #1
LQ Newbie
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
DHCP client fails to renew lease

Keep in mind when reading and answering to this thread that I'm a total newbie :-)

Okay, on to my problem: My RedHat 7.2 box gets its IP just fine from the DHCP server, but when the lease expires I have to manually get a new one using ifup. The lease time is 1 hour, so it goes without saying that this is extremely annoying. Computers running different flavors of Windows do not have this problem.

What I'm wondering is if this is a configuration problem with my box or if it's a DHCP server problem. I don't know what kind of OS the server is running, it is out of my hands, and the administrator doesn't appear to be too good at what he does (it's a DHCP server for the students on campus, and the administrator is also a student), so all I can do for now is either look for problems on my own computer or get some answers from you guys as to what might be the problem with the DHCP server and relay that information to the guy who's in charge.

Edit: forgot to mention that ifup works every time, and I don't actually get a new IP, I get the same one as before, it just won't happen automagically like it's supposed to.

Last edited by NiPNi; 04-06-2002 at 09:38 AM.
Old 04-06-2002, 06:43 PM   #2
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141

Rep: Reputation: 15
I'm not too sure I can help you, but..

The DHCP client requests a lease renewal at 1/2 lease time. So, in your case, your system should as for a renewal every 30 minutes. As I see it, either one of two things are happening. Either the DHCP server is not honoring the renewal, or your system is not requesting the renewal. Which DHCP client are you using, dhcpclient, dhcpcd, pump or ? -mk
Old 04-06-2002, 07:01 PM   #3
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 59
The dhcp client daemon, dhcpcd, can be invoked from the command line. Since this is doing something weird and wiggy, I think the best way to tackle it maybe to get the lease using the dhcpcd and check the man page on it for the verbose logging option so you can just re-direct all of the mess to a log file for the duration. When the lease next kills itself off, you can tail the log to see what went kazoo.




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 doesnt renew lease on hotplug sm1else Linux - Wireless Networking 2 04-05-2005 04:10 AM
how do I renew a dhcp client lease? susefan Linux - Networking 2 03-07-2005 12:49 PM
Technical Q: How can I renew DHCP lease with different IP? paul_m_d Linux - Networking 16 07-26-2004 03:52 AM
Can not get DHCP client lease on startup AlgebraicSpore Linux - Networking 2 06-15-2004 12:16 AM
DHCP won't renew lease without reset of router! amped Linux - Networking 9 03-23-2004 11:37 PM > Forums > Linux Forums > Linux - Networking

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

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