LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Busybox udhcpc does not request lease after dhcp server reboots (https://www.linuxquestions.org/questions/linux-networking-3/busybox-udhcpc-does-not-request-lease-after-dhcp-server-reboots-846712/)

duluxe 11-26-2010 09:50 AM

Busybox udhcpc does not request lease after dhcp server reboots
 
Hi everyone,
I'm not sure if it is a "bug" but here is my situation : I have an embedded system running udhcpc ( busybox ) connected to a router ( which is also a dhcp server ) . After the router reboots, it does not remember the allocated lease for my embedded system. On the other hand, my udhcpc does not request a new/renew lease either. So my router is not aware of my embedded system <-- no network for my embedded system.

Is it an udhcpc's bug ? ( I'm using busybox 1.12 ) . Because in common desktop settings ( my laptop for example ) , when the network is up again ( after previously down ) , my laptop automatically requests new/renew a lease.

And how to work around this problem. ATM I write a script checking network connection every 5 seconds . If it detects network change, it will kill the old udhcpc daemon and start a new one. But I think this solution is a bit of overkill.

Thanks for reading.

nini09 11-27-2010 11:09 PM

If DHCP server reboots, it is normal that client doesn't renew its IP address because lease haven't expired. The DHCP server is smart enough and doesn't assign your client IP address to other clients.


All times are GMT -5. The time now is 04:53 PM.