[BusyBox] Lease remembering in udhcpc?

Russ Dill Russ.Dill at asu.edu
Wed Aug 24 03:23:36 UTC 2005

On Sun, 2005-08-21 at 12:08 +0200, Josef Wolf wrote:
> Hello!
> I have installed busybox with udhcpc, and it's working great that far.
> There are just two things I am not entirely happy with:
> 1. When the dhcp server can't be reached, udhcpc disables the interface.
>    I think it would be better to reuse the last ackquired lease as long
>    as it is not expired.  Rfc2131 allows this behavior in section 3.2.3.

You can do that in the scripts. You probably want to store the IP and
hardware address of the server or some such as well.

> 2. While default.script can be used to store the ackquired lease somewhere,
>    there is no way to read and reuse this information at startup.

Yup, modify the script to your hearts content. You probably want to make
sure that A) The IP is not in use and that B) The server is on the
network. If you are doing B), you can store multiple caches.

An alternative to B would be to store some other address on the network,
ie, your default gateway.

More information about the busybox mailing list