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 04-06-2002, 08:30 AM   #1
NiPNi
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 08:38 AM.
 
Old 04-06-2002, 05:43 PM   #2
mikek147
Member
 
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, 06:01 PM   #3
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

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

Luck,

Finegan
 
  


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration