Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-19-2007, 05:42 PM   #1
LQ Newbie
Registered: Nov 2006
Location: Huntsville, AL
Posts: 1

Rep: Reputation: 0
detecting network down

On most installations, which program identifies when a network connection goes down and identifies when a new DHCP request needs to occur. I have an embedded system that I would like this to work on. Unfortunately, I do not know which tool to add that will give me the desired result.

Doug Bailey
Old 06-20-2007, 11:59 PM   #2
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If it's an embedded system it's probably using the DHCP client udhcpc from busybox. Its detailed behaviour is specified in a script, usually /usr/share/udhcpc/default.script

If the network goes down, I'm not sure the udhcpc process even finds out until it tries to renew the lease, which might be hours later. Can you just set a cron job or a simple loop to check for network connectivity and restart networking if it is out?

There is a discussion of udhcpc in the embedded context here:

One of the suggestions is to configure udhcpc to fall back to a usable static address, so that you can still communicate with the device if dhcp fails.


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
Detecting network settings philips217 Linux - Networking 5 11-28-2006 10:44 AM
my network card is not detecting dikki_75 Linux - Software 1 07-05-2006 08:10 AM
10.2 not detecting network card jnsg Slackware 19 09-30-2005 09:39 PM
detecting wireless network MiniMe001 Linux - Laptop and Netbook 13 11-28-2004 02:21 PM
Debian not detecting my network card pwaring Debian 17 03-30-2004 10:51 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:43 AM.

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