Beemer Biker wrote:
>
> "Clive Dove" <(E-Mail Removed)> wrote in message
>
news:RFLQc.1487402$(E-Mail Removed) t.cable.rogers.com...
>> Beemer Biker wrote:
> <snip>
>> >
>> > I saw this response and have a question. (i am no linux expert)
>> > When powering up several red hat 9 linux boxes set to use dhcp
>> > services, if I forget to connect the ethernet cable it seems I
>> > never get assigned an ip address.
>
> <snip again>
>
>>
>> So when you booted a machine that did not have its cable connected,
>> the
>> DISCOVERY packet went nowhere and so the OFFER packet was not sent.
>> By the time that you had connected in the cable, the DHCP client
>> daemon had stopped sending and therefore there was no broadcast OFFER
>> for it to hear.
>>
>> When you then issued an ifdown and an ifup, you caused the client
>> daemon to again send out an OFFER packet, just as if you had
>> rebooted.
>>
>
> Thanks Clive, I think windows works the same way in that once I get a
> 169.x and later the network comes up, I have to issue a renew to get
> the proper 192.x from the router.
>
> However, I was wondering if linux has the capability of retrying the
> network
> until it finally comes up. The example I gave with the ethernet cable
> being
> disconnected was oversimplified. Actually, we have a wireless modem
> on a
> mobile system with a linux box http://tinyurl.com/4ucvr. I would like
> to
> use dhcp instead of fixed ip addresses. In the event the system
> reboots (for whatever reason) and the mobile unit is out of range of
> the dhcp
> server, I never get an ip address. I assume I can always write some
> code to perodically retry the connection but thought that linux could
> handle this
> for me. Notebook systems with XP and WIN2K seem to do a better job of
> establishing a connection.
The following may help:
You may wish to review the documentation on the ISP dhcp client
"dhclient" and its configuration file "dhclient.conf"
In mandrake the package name is dhcp-client-3.0.1-5mdk which installs
these files:
/sbin/dhclient
/sbin/dhclient-script
/usr/share/doc/dhcp-client-3.0.1
/usr/share/doc/dhcp-client-3.0.1/dhclient.conf
/usr/share/man/man5/dhclient.conf.5.bz2
/usr/share/man/man5/dhclient.leases.5.bz2
/usr/share/man/man8/dhclient-script.8.bz2
/usr/share/man/man8/dhclient.8.bz2
Note that /etc/dhclient.conf is not installed by the rpm package and
therefor the dhcp client by default in Mandrake uses only the default
values.
However, the file contains parameters to set the retry timeout and the
retry interval. Note the manner in which the retry interval lengthens
after the first retry until it hits the timeout.
Read this man page
man dhclient.conf
And read the man pages that are referred to in that man page.
Also, in Mandrake there is documentation
in /usr/share/doc/chdp-clinet-3.0.1/dhclient.conf
I assume that the man page and similar documentation will be available
in your distribution.
Clive