Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Rosen <jeremy.rosen@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] how to restart network interface automatically
Date: Mon, 6 Oct 2014 08:49:39 +0200 (CEST)	[thread overview]
Message-ID: <1039764800.26168682.1412578179624.JavaMail.root@openwide.fr> (raw)
In-Reply-To: <CAK9TtU2PL8yxy=6Exn_-wTVE9z-TdEhD9tw-FL=LG165D2p+cg@mail.gmail.com>


> 
> 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

  reply	other threads:[~2014-10-06  6:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04 10:38 [Buildroot] how to restart network interface automatically Sylvain LG
2014-10-06  6:49 ` Jeremy Rosen [this message]
2014-10-06  9:41   ` Sagaert Johan

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=1039764800.26168682.1412578179624.JavaMail.root@openwide.fr \
    --to=jeremy.rosen@openwide.fr \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox