[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] DHCP lease renewals



Alex Hudson  wrote:

> On Thu, 2002-10-17 at 13:18, José Luis Gómez Dans wrote:
> Hi José - I don't really understand your question :)

    I know, I am not particularly sure of what happened :-)

> If the network was out, then you wouldn't be able to renew the lease. If
> it came back up, why would you need to renew the lease? The ethernet
> card is still configured correctly, I would have thought. If you mean
> the DHCP server forgot what leases it had issued, then you can't do
> anything about it - the DHCP server is broken and needs to be replaced.

    OK, some problem happened in the network at some point after 3 AM
last night. As a result, the Linux machines I use were unreachable
from other machines in the network. ping requests came back with host
unreachable and so on. On closer in situ inspection, it was clear that
the eth0 interfaces (at least in the one that has a keyboard and
monitor :D) were not configured (/sbin/ifconfig showed no IP address).
Pinging other machines didn't work either. Somewhat, all the
information regarding network configuration was lost.

    Issuing a simple pump command (or rebooting) solved the problem.

    My previous message was probably a bit vague, as I do not know the
details  of what happened, but the question stands on how to deal with
this automatically. I guess that one way of doing it is to try and
ping a known host in the local network every x minutes (cron job). If
the ping returns network unreachable or somesuch, it tries again in
about 30 minutes, and if it still doesn't get anywhere, it renews the
lease.

    There, I asked my own question I guess :-) however, other views
welcomed.

José


-- 
José L Gómez Dans			PhD student
Tel: +44 114 222 5582			Radar & Communications Group
FAX; +44 870 132 2990			Department of Electronic Engineering
					University of Sheffield UK
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.