* [Buildroot] how to restart network interface automatically
@ 2014-10-04 10:38 Sylvain LG
2014-10-06 6:49 ` Jeremy Rosen
0 siblings, 1 reply; 3+ messages in thread
From: Sylvain LG @ 2014-10-04 10:38 UTC (permalink / raw)
To: buildroot
Hello,
my network interface eth0 is configured to use DHCP.
At boot time, init script S40network starts the network. And if DHCP server
- for any reason - can't answer, no IP will be set for eth0.
What will be the correct strategy to handle this case?
Best regards,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141004/23346f26/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] how to restart network interface automatically
2014-10-04 10:38 [Buildroot] how to restart network interface automatically Sylvain LG
@ 2014-10-06 6:49 ` Jeremy Rosen
2014-10-06 9:41 ` Sagaert Johan
0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Rosen @ 2014-10-06 6:49 UTC (permalink / raw)
To: buildroot
>
> Hello,
>
>
> my network interface eth0 is configured to use DHCP.
>
>
> At boot time, init script S40network starts the network. And if DHCP
> server - for any reason - can't answer, no IP will be set for eth0.
>
>
> What will be the correct strategy to handle this case?
>
IIIRC the problem is in the busybox DHCP which doesn't retry on
failure by default,
fortunately this is just a config option for busybox, so if you
do a make busybox-menuconfig you can change that behaviour
run "udhcpc --help" on the target to see what options are
available
set IFUPDOWN_UDHCPC_CMD_OPTIONS to whatever fits you ned
>
> Best regards,
>
>
> Sylvain
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] how to restart network interface automatically
2014-10-06 6:49 ` Jeremy Rosen
@ 2014-10-06 9:41 ` Sagaert Johan
0 siblings, 0 replies; 3+ messages in thread
From: Sagaert Johan @ 2014-10-06 9:41 UTC (permalink / raw)
To: buildroot
Hi
You can use the -b option in the busybox dhcp option list.
This forks DHCP to the background if the interface was'nt up ut boottime.
I use :
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n -b"
Don't forget /etc/network/interfaces :
auto eth0
iface eth0 inet dhcp
Regards Johan
-----Oorspronkelijk bericht-----
Van: buildroot [mailto:buildroot-bounces at busybox.net] Namens Jeremy Rosen
Verzonden: maandag 6 oktober 2014 8:50
Aan: Sylvain LG
CC: buildroot at busybox.net
Onderwerp: Re: [Buildroot] how to restart network interface automatically
>
> Hello,
>
>
> my network interface eth0 is configured to use DHCP.
>
>
> At boot time, init script S40network starts the network. And if DHCP
> server - for any reason - can't answer, no IP will be set for eth0.
>
>
> What will be the correct strategy to handle this case?
>
IIIRC the problem is in the busybox DHCP which doesn't retry on failure by default,
fortunately this is just a config option for busybox, so if you do a make busybox-menuconfig you can change that behaviour
run "udhcpc --help" on the target to see what options are available
set IFUPDOWN_UDHCPC_CMD_OPTIONS to whatever fits you ned
>
> Best regards,
>
>
> Sylvain
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-06 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-04 10:38 [Buildroot] how to restart network interface automatically Sylvain LG
2014-10-06 6:49 ` Jeremy Rosen
2014-10-06 9:41 ` Sagaert Johan
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.