D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Router problem - maybe not.

 

On Wed, 06 Sep 2006 19:47:24 +0100
Robin Cornelius <robin.cornelius@xxxxxxxxx> wrote:

> How long after renewing your dhcp lease can you connect for. Ie when it
> says expire 3 2006/9/6 18:35:22 is that when your connection drops? Or
> is this totally unrelated, i wonder if the router is trying to be too
> clever for its own good.

When I restart the computer (with the router on all the time) I cannot
access the internet. Once I have carried out the router off/on routine
I can then log on to the internet as usual for as long as I like. The
connection does not drop until I log off the computer ( and leave the
router on). Then the next time I start the computer the whole thing
starts again.

> I don't understand why switching the router on and off helps in this
> instant. What happens if you just unplug the cable? do you get the same
> effect
> 
Haven't tried that yet.

> If you have the correct deamons installed when you switch off or unplug
> the router it will automaticly run ifdown eth0 and when the power/cable
> is reconnected it will run ifup eth0, which in turn causes a new dhcp
> lease to be obtained. This might be what is happening.
> 
> Can you confirm that when you lose connection issuing a dhclient as
> root fixes the problem.

No, it doesn't. I have just restarted the computer (but not done
the router routine) and I cannot access the internet although the icon
on the panel tells me that the network is up.

> 
> Also can you do a "ps -aux | grep dhclient" and see if dhclient has
> backgrounded properly and if you have a load of them running or
> something. dhclient should sit in the background after getting the first
> lease then release at the required interval.
> 
Here is the output

[neil@localhost ~]$ ps aux | grep dhclient
root      5117  0.0  0.1   2096   992 ?        Ss   22:22   0:00
dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases
-pf /var/run/dhclient-eth0.pid -cf /etc/dhclient-eth0.conf eth0
root      6167  0.0  0.1   2096  1004 ?        Ss   22:26   0:00
dhclient eth0 [neil@localhost ~]$

> You may want to do a killall dhclient (if you have a load) which should
> kill all instances then run just one and see how long you remain
> connected. If you don't have killall just do "kill pid" (where pid is
> the value(s) obtained (for process id) by doing the "ps -aux | grep
> dhclient"

There doesn't appear to be a load of instances running.
> 
> Richard Brown's "Oops internet problems" looks very similar in nature to
> this one and the both your routing and dns entries are the same. Do you
> both have the same router?
> 
Don't know. Mine is a D-Link DSL-G604T. But remember that once I do the
router routine it all works just fine.

As root I have just done the ifdown/ifup routine to no avail.

Now I will do the router routine so that I can email this.

Neil Winchurst


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html