-   Linux - Networking (
-   -   DHCP won't renew lease without reset of router! (

amped 03-16-2004 08:06 PM

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?


tuxguy 03-16-2004 08:36 PM

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..


amped 03-16-2004 08:41 PM

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!

tuxguy 03-16-2004 09:01 PM

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...

amped 03-16-2004 09:13 PM

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.

Outabux 03-17-2004 02:17 PM

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 :mad:

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!

amped 03-23-2004 07:32 PM

An answer is still needed =/. Has anyone been able to fix it?

AutOPSY 03-23-2004 07:54 PM

dhcpcd is a program to run a DHCP client not use DHCP in gaining internet adress/priveleges.

AutOPSY 03-23-2004 07:55 PM

Your ISP's leased IP to your router should never be up untill you stop paying for it.

tuxguy 03-23-2004 10:37 PM

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...

All times are GMT -5. The time now is 11:25 PM.