LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-08-2012, 10:44 AM   #1
5883
Member
 
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
sometimes udhcpc cannot NEVER grab dhcp ip address unless reboot


hi, we do this at /etc/init.d,

udhcpc --retries 4 -n -q -i eth0

if it fails, our app will run it again till we get a valid ip.
most of the time it works.
but for the case it doesn't, we never get ip unless power cycle the board.

so what could be wrong here ?
thanks very much !
 
Old 10-09-2012, 01:41 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I think the first line of diagnosis would be to see whether the problem is on the client or on the server, and whether it is in sending or receiving. An easy check is to see whether the DHCP server is reporting requests from your host, and whether it is saying it responds to the requests. This can probably be determined by looking in the server's system log files, probably /var/log/messages. If you don't have access to this, then I suggest setting up a temporary server on an isolated network to perform some testing.
I have not used udhcpc; I assume it is not part of the ISC DHCP package. Perhaps try using the ISC DHCP client, which provide the dhclient tool.
What exactly do you mean by 'our app will run it'? In my experience, most dhcp clients are run as a daemon process.

--- rod.

Last edited by theNbomr; 10-09-2012 at 01:45 PM.
 
  


Reply



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 lease only obtainable with dhcpcd; wicd won't grab it for whatever reason. foodown Linux - Networking 3 09-29-2011 01:01 PM
Busybox udhcpc does not request lease after dhcp server reboots duluxe Linux - Networking 1 11-27-2010 11:09 PM
XP laptop trying to grab Gateway computer's IP address uid0sd Linux - Networking 2 11-13-2007 05:50 PM
ip server and client: grab interface address rino.caldelli Programming 1 03-02-2006 06:00 AM
DHCP won't grab IP for either NIC's. mrsolo Linux - Networking 4 12-31-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration