Review your favorite Linux distribution.
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 12-23-2009, 01:17 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 10

Rep: Reputation: 0
Question Not getting IP when n/w cable is plugged-in

Hi All,

I am working on h/w device having linux kernel version 2.6.27 with busybox installed.

I observed below problems while working on jffs2 image is flashed on the board.
1)When the board is powered-up with n/w cable is connected, it doesn't get IP address automatically, I have to use "/etc/init.d/networking restart" in init script(/etc/init.d/rcS) to get the IP address.(I am using dynamic addressing)

2)When the board is powered-up with n/w cable is unplugged and plugging-in once the device is started, I get "link up" message from the system, but still the IP is missing in eth0 interface.

I have udhcpc(v1.14.1) installed.

Giving below commands manually, get the IP for device:
ifdown eth0
/etc/init.d/networking restart
but It is not pretty solution for me !

What I want is, the device should get IP address automatically once the n/w cable is plugged-in.(as we get in desktop m/c's)

Am I missing some scripts or configuration parameters ?

Please let me know your comments or suggestions.

Thanks in advance !

Old 12-24-2009, 11:57 AM   #2
LQ Newbie
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi All,

I found the answer myself.

Acutal problem was "udhcpc" was not getting started automatically. I started it through initscript




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
Detect network cable being plugged in Vgui Slackware 7 01-03-2009 07:22 AM
Ethernet cable (un)plugged status ravi.xolve Linux - Networking 3 10-13-2007 11:55 PM
if( ethernet-cable-is-plugged-in ) { ... mrtwice Linux - Networking 13 10-08-2006 03:57 PM
What happens when a network cable is plugged in ? balajipriya Linux - Networking 1 08-12-2004 10:10 AM
Automatically Connect when cable is plugged in?? NovaBurst Fedora 2 02-18-2004 10:15 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:22 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