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.
|