udhcpc option question

Denys Vlasenko vda.linux at googlemail.com
Mon Aug 5 00:21:10 UTC 2013


On Sat, Aug 3, 2013 at 8:13 AM, Michael D. Setzer II
<mikes at kuentos.guam.net> wrote:
> I have a project that uses busybox for a large number of functions,
> and one is to use udhcpc to get the IP address.
>
> I've just gotten a report from an user that he is having an issue
> with it not getting the ip address during the initial boot process, but
> running it again succeeds? Not sure what is causing the initial
> failure. The original attempt is a script that is called from the rcS
> script, and it has the udhcpc with options -n, -i and -s. Was
> thinking  of  adding a -t 4 option to see if that would have it try 4
> times, but am not sure if -t and -n work together.

They should: even if -t N  isn't specified,
it is implicitly set to 3.

> There may also
> be users that don't have a dhcpd server setup, so can't just have it
> keep trying.
>
> The user is not local, so it is difficult to work remotely on the issue.
> Perhaps someone has a more complete understanding of the
> options for udhcpc than I do. Using busybox 1.21.1.

Ask user to crank up debug output using -vv[v]
 and set CONFIG_UDHCP_DEBUG.
to 9.


More information about the busybox mailing list