LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Not getting IP when n/w cable is plugged-in (https://www.linuxquestions.org/questions/linux-networking-3/not-getting-ip-when-n-w-cable-is-plugged-in-777721/)

harshadnatiye 12-23-2009 12:17 PM

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

harshadnatiye 12-24-2009 10:57 AM

Hi All,

I found the answer myself.

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

Thanks.

Regards,
Harshad


All times are GMT -5. The time now is 04:07 AM.