w*s 发帖数: 7227 | 1 # udhcpc --help
BusyBox v1.18.4 (2011-09-06 10:46:51 EDT) multi-call binary.
Hi, for some reason i cannot renew the lease.
root# udhcpc -i eth0 -s ./udhcpc.script -p eth0.pid -b
yes i got the ip address etc.
in udhcpc.script i put echos in the beginning so i know it get called
now since udhcpc is up running for eth0, i do this,
root# cat eth0.pid, i get 869
root# /bin/kill -SIGUSR1 869
nothing happened, no print from udhcpc.script
what did i do wrong pls ?
do i have files missing ? | v*s 发帖数: 29 | 2 I think all you did is killing udhcpc. Of course you will not get a ip
address.
Do you run it on embedded device?
Any specific reason why you use udhcpc instead of isc-dhcp?
Maybe you should learn some basic about dhcp first, even Linux. If you kill
a proc, how do you expect it to do things for you afterwards?
【在 w*s 的大作中提到】 : # udhcpc --help : BusyBox v1.18.4 (2011-09-06 10:46:51 EDT) multi-call binary. : Hi, for some reason i cannot renew the lease. : root# udhcpc -i eth0 -s ./udhcpc.script -p eth0.pid -b : yes i got the ip address etc. : in udhcpc.script i put echos in the beginning so i know it get called : now since udhcpc is up running for eth0, i do this, : root# cat eth0.pid, i get 869 : root# /bin/kill -SIGUSR1 869 : nothing happened, no print from udhcpc.script
|
|