LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-26-2010, 09:50 AM   #1
duluxe
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
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.
 
Old 11-27-2010, 11:09 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 967

Rep: Reputation: 67
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP server seems to not give up lease... custangro Linux - Networking 4 09-29-2008 03:54 PM
DHCP Server - No lease time? piercey Linux - Server 2 07-21-2008 11:15 AM
DHCP Server lease list mahesh_sonawane Linux - Networking 1 10-05-2006 09:17 PM
DHCP server and client lease question rickyinman Linux - Networking 0 04-14-2006 10:53 AM
Invalid DHCP server lease time CloudBuilder Linux - Wireless Networking 3 04-30-2004 08:41 PM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration