From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 38D88E00444 for ; Mon, 3 Feb 2014 08:23:43 -0800 (PST) Received: from [192.168.1.11] (c-68-38-40-177.hsd1.nj.comcast.net [68.38.40.177]) by smtp.webfaction.com (Postfix) with ESMTP id C95FB2283987; Mon, 3 Feb 2014 16:23:41 +0000 (UTC) Message-ID: <52EFC28C.4010909@mindchasers.com> Date: Mon, 03 Feb 2014 11:23:40 -0500 From: Bob Cochran User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Tarek El-Sherbiny , "meta-freescale@yoctoproject.org" References: In-Reply-To: Subject: Re: DHCP IP address is never obtained if powering up without network connected X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 16:23:46 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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@yoctoproject.org > https://lists.yoctoproject.org/listinfo/meta-freescale >