LinuxQuestions.org

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

5883 01-19-2013 09: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 02: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 12:03 PM

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 03:13 PM.