[PATCH] udhcp: infinite retries

Steven Scholz steven.scholz at imc-berlin.de
Tue Feb 6 16:21:00 UTC 2007


Paul Fox wrote:
>  > >>> It may be useful (at least it is for us) to keep on sending DHCP
request
>  > >>> and renewals for ever until we actually get an answer. For that
purpose
>  > >>> udhcpc -t 0 could do the job.
>  > >> I guess udhcpc -t 999999999 will be the same in practice.
>  > >
>  > > Almost, but not exactly.
>  > > We have machines that can be powered up without being connected to any
>  > > network for weeks. However, we need them to fetch an IP if they ever get
>  > > plugged to some network.
>  >
>  > Then maybe you want to use something like netplugd ot ifplugd ...
>
> of course that takes care of the locally connected problem, but
> not the "connected to a switch which is itself disconnected"
> problem.

But udhcpc in background mode takes care of this situation by trying toi get
a lease every 5 minutes or so ... Right?

> dhcp should be using netlink itself, to track interface connectivity.  (i.e.,
> needing ifplugd is a bug, in my opinion.)
Not realy. We're using netplugd with static IP adresses as well. No need for
eth0 to be up and running if there's no network...

--
Steven



More information about the busybox mailing list