udhcpc question

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Wed Dec 22 10:12:07 UTC 2010


On Wed, 22 Dec 2010, Denys Vlasenko wrote:
> On Monday 20 December 2010 20:07, Christopher Barry wrote:
> > All,
> >
> > Anyone know the correct incantation to release an ip on an interface
> > with udhcpc? I can't seem to make it work for some reason.
> > Running BB 1.16.1
>
> What do you mean by "release IP"?
>
> $ udhcpc --help
> BusyBox v1.18.0 (2010-11-23 00:11:12 CET) multi-call binary.
>
> Usage: udhcpc [-fbnqvoCR] [-i IFACE] [-r IP] [-s PROG] [-p PIDFILE]
>         [-H HOSTNAME] [-V VENDOR] [-x OPT:VAL]... [-O OPT]...
>
>         -i,--interface IFACE    Interface to use (default eth0)
>         -p,--pidfile FILE       Create pidfile
>         -s,--script PROG        Run PROG at DHCP events (default /usr/share/udhcpc/default.script)
>         -t,--retries N          Send up to N discover packets
>         -T,--timeout N          Pause between packets (default 3 seconds)
>         -A,--tryagain N         Wait N seconds after failure (default 20)
>         -f,--foreground         Run in foreground
>         -b,--background         Background if lease is not obtained
>         -n,--now                Exit if lease is not obtained
>         -q,--quit               Exit after obtaining lease
>         -R,--release            Release IP on exit
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this?

Or this:

       udhcpc responds to the following signals:

       SIGUSR1
              This  signal  causes udhcpc to renew the current lease or, if it
              does not have one, obtain a new lease.

       SIGUSR2
              This signal caused udhcpc to release the current lease.


Cheers,

-- 
Cristian


More information about the busybox mailing list