[meta-freescale] DHCP IP address is never obtained if powering up without network connected
Tarek El-Sherbiny
tarek.elsherbiny at gmail.com
Mon Feb 3 08:44:22 PST 2014
Hi Bob,
I mean from /etc/network/interfaces. I'm working with eth0
cat /etc/network/interfaces
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
# Wired interface
auto eth0
iface eth0 inet dhcp
# iface eth0 inet static
# address 192.168.0.50
# netmask 255.255.255.0
# gateway 192.168.0.1
I Have dhcp package:
# rpm -qa | grep dhcp
busybox-udhcpc-1.21.1-r0.cortexa9hf_vfp_neon
dhcp-client-4.2.5+P1-r1.cortexa9hf_vfp_neon
And ifupdown:
# rpm -qa | grep ifupdown
init-ifupdown-1.0-r4.cortexa9hf_vfp_neon
dhcp client should obtain ip once I plug-in the cable, right?
On Mon, Feb 3, 2014 at 4:23 PM, Bob Cochran <yocto at mindchasers.com> wrote:
> On 02/03/2014 11:12 AM, Tarek El-Sherbiny wrote:
>
>> Hi,
>>
>> Starting i.MX6 board without network cable connected then connect the
>> cable. I expect udhcpc to obtain ip address after the if-up event but it
>> doesn't.
>>
>> How do I force udhcpc to obtain IP after detecting if-up event?
>>
>
> I'm not sure if you mean in your /etc/network/interfaces script or from
> the shell. Assuming I'm working with eth1:
>
> When I'm debugging dhcp issues from the shell, I run:
>
> dhclient -v eth1
>
> The verbose output is useful in place of a packet sniffer to see info on
> the handshake
>
> In my interfaces script:
>
> auto eth1
> iface eth1 inet dhcp
>
> Of course, you'll need to have the right packages installed. I think you
> want dhcp-client and init-ifupdown
>
>
>
>
>> --
>> /Tarek/
>>
>>
>> _______________________________________________
>> meta-freescale mailing list
>> meta-freescale at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>>
>
--
*Tarek*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140203/a0805a1a/attachment.html>
More information about the meta-freescale
mailing list