LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-16-2004, 09:06 PM   #1
amped
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0 Community
Posts: 9

Rep: Reputation: 0
Question DHCP won't renew lease without reset of router!


Every day, once a day, my internet connection will stop, due to what I'm 99% sure is a DHCP problem. It fixes when I manually reset the router. The problem is, it will never get an IP without doing this. I've recently switched from using dhclient to dhcpcd, thinking it might fix the problem. It hasn't. This gets quite irritating, especially if I'm in the middle of something when it happens. I saw something about adding the -r switch, but how do I make sure it does this on boot?

Has anyone experienced this problem, or just knows what the problem is?

Thanks,
Amped
 
Old 03-16-2004, 09:36 PM   #2
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 15
I am having the exact same problem... when ever the Max-lease-time is exipired the machines that are "getting" their IP's from DHCPD wont surf/ping .... I have to restart via /etc/init.d/networking restart .... other than doing this, I have not been able to figure out the prob either.. will be watching this thread..

thanks
Jesse
 
Old 03-16-2004, 09:41 PM   #3
amped
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0 Community
Posts: 9

Original Poster
Rep: Reputation: 0
Wait a tick...

You're able to get it working again without doing a manual router reset? Explain how please, this would be a step forward for me. Walking downstairs is sure a sweat!
 
Old 03-16-2004, 10:01 PM   #4
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 15
I am assuming your using your linux box as a router (NAT)...

log into your linux box via SSH (i like using PUTTY on windoz) then type su then your root password...

not too sure how to restart the networking in mandrake...

all I type is /etc/init.d/networking restart

and all is good with my windows box's surfing capabilities...

Last edited by tuxguy; 03-16-2004 at 10:02 PM.
 
Old 03-16-2004, 10:13 PM   #5
amped
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0 Community
Posts: 9

Original Poster
Rep: Reputation: 0
Ah, we obviously have it a different way around. I have a Windows box sharing the connection. My notebook has Linux, and it's the only one on the network which keeps having the dhcp problems.
 
Old 03-17-2004, 03:17 PM   #6
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian, LMDE, n some untus
Posts: 215

Rep: Reputation: 30
Me too.

On my inspiron 8200 same thing! Will try pump or something. Knoppix getsit right but debian's configurator and dhclient + some others like the netenv go completely screwy inside kde. Never have the problem inside the console

If using debian try apt-get install pump and configure...otherwise on an rpm based distro get the rpms and install (i guess).

Dows is looking mo betta all the time if noone answers or rather attempts to answer or send a hello or something. Anyway good luck. Will be viewing the replies.

/etc/init.d/networking/restart a hassle...sometimes that doesnt even get it right...gotta reboot!
 
Old 03-23-2004, 08:32 PM   #7
amped
LQ Newbie
 
Registered: Mar 2004
Distribution: Mandrake 10.0 Community
Posts: 9

Original Poster
Rep: Reputation: 0
An answer is still needed =/. Has anyone been able to fix it?
 
Old 03-23-2004, 08:54 PM   #8
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
dhcpcd is a program to run a DHCP client not use DHCP in gaining internet adress/priveleges.
 
Old 03-23-2004, 08:55 PM   #9
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
Your ISP's leased IP to your router should never be up untill you stop paying for it.
 
Old 03-23-2004, 11:37 PM   #10
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 15
ISP's dhcp assigned ip's do expire... your router will contact your ISP's dhcp server for a new IP when the lease time expires..
This is not the problem.

It's on the intRAnet, internal clients lease's not renewing.. I had to set up my lease time for a month...
 
  


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 04:10 AM
how do I renew a dhcp client lease? susefan Linux - Networking 2 03-07-2005 12:49 PM
dhclient lease renew ozplanit Linux - Networking 1 08-14-2004 03:49 AM
Technical Q: How can I renew DHCP lease with different IP? paul_m_d Linux - Networking 16 07-26-2004 03:52 AM
DHCP client fails to renew lease NiPNi Linux - Networking 2 04-06-2002 07:01 PM


All times are GMT -5. The time now is 09:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration