Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: restarting pump (DHCP) automatically when network unavailable at boot time

From: Bob Proulx <bob(at)proulx.com>
Date: Thu Jun 28 2007 - 17:17:45 EDT


Vincent Lefevre wrote:
> On a machine in a local network, I have in my /etc/network/interfaces
> file:
>
> auto eth0
> iface eth0 inet dhcp
>
> But after a power outage, my machine sometimes restarts while the
> network isn't available yet.

That does not seem right to me. I think that with the above it should all work okay.

> In this case, I can no longer ssh to it. And I can't reboot it
> remotely.

Change the 'auto eth0' line to 'allow-hotplug eth0' instead. That triggers the dhcp to happen when the device becomes available. That will probably workaround whatever problem you are experiencing. The allow-hotplug is now the default in Etch.

> How can I make pump (the DHCP client I'm using) to try again
> periodically?

I think it should already be trying again periodically. Perhaps the timeout is very long. You might try dhcp3-client instead. I have had good luck with it.

I am suspicious that something else is also involved here that is causing confusion as to what is really happening.

> Note: When I'm in front of the machine, I still want to be able to
> use it when the network is not available (to do some local work,
> while waiting for the network to come back).

Do you need help?X

Sure. Laptops operate that way a lot!

Bob

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Jun 28 17:20:27 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 28 2007 - 17:30:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library