udhcpc usage

Guenter lists at gknw.net
Wed Apr 15 04:51:21 UTC 2009


Hi Gilles,
Gilles Espinasse schrieb:
> I don't need the ifconfig  step
but I - I play with old 2.4.x kernel PXE image from IPCop, :) :)
without bringing the interface up udhcpc only reports 'network down',
when I 'ifconfig eth0 up' then udhcpc fetches the right ip just fine;
though if you have a better 2.6 one for me then I'm glad to test that ....

> Don't you need to indicate the script to run to set the ip
> I do
> udhcpc -q -n -T 3 -A 1 -t 3 -i eth%d -s /usr/bin/udhcpc.script
well, I tested lots the past weeks, and now since you and Denys both
tell me that udhcpc does never self the setting the ip I must have
something with a Debian installer in mind which I tested too in the
past, and this then must have had its script on default place;
you know the IPCop PXE doesnt have such a script, and I did never copy
one over - for this I'm 100% sure.
Well, meanwhile I tested the sample.script from busybox svn, copied it
to default place /usr/share/udhcpc/default.script, and now I get another
issue:
udhcpc: exec : no such file or directory
so seems that busybox now finds the script but cant exec it...

what I'm missing now?

I'm close to give up with udhcpc, and use the ip string I can get from
PXE boot with 'ipappend 1' ....

Guen.


More information about the busybox mailing list