LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   what happens after dhcp ip lease expires ? (https://www.linuxquestions.org/questions/linux-networking-3/what-happens-after-dhcp-ip-lease-expires-4175446410/)

5883 01-19-2013 08:35 PM

what happens after dhcp ip lease expires ?
 
in my board i have udhcpc,
during start up, /etc/init.d has this line:
udhcpc -n -q -i eth0

normally it gets the dhcp ip and everything is ok.

Say after 2 weeks, this ip lease expires,
how can i still keep the connection for this board ?

pan64 01-20-2013 01:06 PM

I would say the client (udhcpc) should request ip again, most likely the same one. you need to be sure dhcp client is running.

5883 01-22-2013 11:03 AM

Hi, for some reason i cannot renew the lease.

root# udhcpc -i eth0 -s ./udhcpc.script -p eth0.pid -b

in udhcpc.script i put echos in the beginning so i know it get called

now either 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 ?






Quote:

Originally Posted by pan64 (Post 4874199)
I would say the client (udhcpc) should request ip again, most likely the same one. you need to be sure dhcp client is running.



All times are GMT -5. The time now is 06:59 PM.