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 > hub and 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: If you're willing to do a bit of tinkering... Modify your client to hold its lease until you order it to release. Note that this will make your client problematic (e.g: if and whemn you take it to a new network, or the sysadmin decides to change the ip addresses range). ICS's dhcp-client has all the local modifications implemented in shell scripts. So maybe it is easier to implement. -- Tzafrir Cohen mailto:[EMAIL PROTECTED] 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]
