[meta-freescale] DHCP IP address is never obtained if powering up without network connected

Bob Cochran yocto at mindchasers.com
Mon Feb 3 08:23:40 PST 2014


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
>



More information about the meta-freescale mailing list