[Buildroot] how to restart network interface automatically
Sagaert Johan
sagaert.johan at skynet.be
Mon Oct 6 09:41:39 UTC 2014
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
More information about the buildroot
mailing list