* DHCP IP address is never obtained if powering up without network connected
@ 2014-02-03 16:12 Tarek El-Sherbiny
2014-02-03 16:23 ` Bob Cochran
0 siblings, 1 reply; 3+ messages in thread
From: Tarek El-Sherbiny @ 2014-02-03 16:12 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 245 bytes --]
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?
--
*Tarek*
[-- Attachment #2: Type: text/html, Size: 436 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DHCP IP address is never obtained if powering up without network connected
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
2014-02-03 16:44 ` Tarek El-Sherbiny
0 siblings, 1 reply; 3+ messages in thread
From: Bob Cochran @ 2014-02-03 16:23 UTC (permalink / raw)
To: Tarek El-Sherbiny, meta-freescale@yoctoproject.org
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DHCP IP address is never obtained if powering up without network connected
2014-02-03 16:23 ` Bob Cochran
@ 2014-02-03 16:44 ` Tarek El-Sherbiny
0 siblings, 0 replies; 3+ messages in thread
From: Tarek El-Sherbiny @ 2014-02-03 16:44 UTC (permalink / raw)
To: Bob Cochran; +Cc: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]
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@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@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-freescale
>>
>>
>
--
*Tarek*
[-- Attachment #2: Type: text/html, Size: 3744 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-03 16:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-02-03 16:44 ` Tarek El-Sherbiny
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.