All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Cochran <yocto@mindchasers.com>
To: Tarek El-Sherbiny <tarek.elsherbiny@gmail.com>,
	 "meta-freescale@yoctoproject.org"
	<meta-freescale@yoctoproject.org>
Subject: Re: DHCP IP address is never obtained if powering up without network connected
Date: Mon, 03 Feb 2014 11:23:40 -0500	[thread overview]
Message-ID: <52EFC28C.4010909@mindchasers.com> (raw)
In-Reply-To: <CAB3sqtYspmsNARzbLTujU=8+4+KhfwPriKqgVxZmHnzt4ACM0Q@mail.gmail.com>

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
>



  reply	other threads:[~2014-02-03 16:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 16:12 DHCP IP address is never obtained if powering up without network connected Tarek El-Sherbiny
2014-02-03 16:23 ` Bob Cochran [this message]
2014-02-03 16:44   ` Tarek El-Sherbiny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52EFC28C.4010909@mindchasers.com \
    --to=yocto@mindchasers.com \
    --cc=meta-freescale@yoctoproject.org \
    --cc=tarek.elsherbiny@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.