LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-23-2009, 12:17 PM   #1
harshadnatiye
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:
Code:
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 !

Regards,
Harshad
 
Old 12-24-2009, 10:57 AM   #2
harshadnatiye
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

Thanks.

Regards,
Harshad
 
  


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


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