Hi

On Mon, 8 Jul 2002, Tzafrir Cohen wrote:

> On Mon, 8 Jul 2002, Michael Sternberg wrote:
>
> >
> > Anybody have a clue ?
> >
> > -----Original Message-----
> > From: Michael Sternberg [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, July 07, 2002 3:53 PM
> > To: iglu
> > Subject: RE: run dhcpcd in the background, even when disconnected?
> >
> > I have a Linux machine that uses dhcpcd for DHCP requests.
> > Computer is always up and connected to the network.
> >
> > DHCP server at my ISP is a bit faulty - it's not available for a
> > long periods of time, I don't know why, maybe it's power failure,
> > or network failure, either way itsnot under my control.
> >
> > This is probably the cause that Linux machine from time to time is
> > left only with loopback 127.0.0.1 address, i.e. there is no another
> > address in /sbin/ifconfig output. Performing bind() to an old IP
> > from C applications fails. I suppose that lease renew time has
> > came, no DHCP server answered and dhcpcd shut down eth0.
> >
> > On the other side, Windows machine that is connected to the same
> > huband configured with DHCP continues to have a valid (old) IPs.
> > I can surf, telnet andhappily perform any network activities as
> > usual.
> >
> > How can you explain this ?
>
> Explanation is simple: you gave it above.
>
> > Maybe it's my faulty configuration of dhcpcd ? But there is no
> > configuration file for this one and I can not use command line
> > options because it get called from binary /sbin/ifup...
>
> A bad answer:

[snip]

A better answer:

I'm currently using the package dhclient3 in debian (you can find the
source in http://packages.debian.org/ , IIRC it is the ISC's client, V3).
Seems to supply most of what you want.

Furthermore, it implements most of its code in shell code, and allows you
to add hooks in the end.

Also have a look at the part where it pings the dhcp server if it doesn't
get a reply. This seems like an obvious point to tweak the dhcp script.

Try to see if you camn use 'dhclient' instead of 'dhcpcd' (they are not
the same, right?)

-- 
Tzafrir Cohen                        /"\
mailto:[EMAIL PROTECTED]        \ /  ASCII Ribbon Campaign
Taub 229, 972-4-829-3942,             X   Against  HTML  Mail
http://www.technion.ac.il/~tzafrir   / \


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to