From: Michael S. Zick <minimod@morethan.org>
To: buildroot@busybox.net
Subject: [Buildroot] busybox network configuration
Date: Thu, 28 Apr 2011 11:14:03 -0500 [thread overview]
Message-ID: <201104281114.05298.minimod@morethan.org> (raw)
In-Reply-To: <E2055310C50F48C1B48974D7235DE3C4@beraninstruments.com.local>
On Thu April 28 2011, Will Moore wrote:
> Hi Charles,
>
> > -----Original Message-----
> > From: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] On
> > Behalf Of Charles Krinke
> > Sent: 28 April 2011 16:16
> > To: buildroot
> > Subject: [Buildroot] busybox network configuration
> >
> > I have apparently forgotten the recipe to configure a network in busybox.
> >
> > I have tried:
> > # ifconfig eth0 10.1.2.3 netmask 255.255.255.0 up
> > # route add default gw 10.1.1.1 etho
> >
> > But, ping doesnt seem to get out of the target board.
> >
> > I also suspect there are one or more script files with things like this that
> > need to be set, but the busybox implementation doesnt have an
> > /etc/sysconfig/network-scripts, so they need to be in a different place, but
> > what is the location and name of the file?
> >
> > DEVICE=eth0
> > BOOTPROTO=static
> > BROADCAST=XXX.XXX.XXX.255
> > IPADDR=XXX.XXX.XXX.XXX
> > NETMASK=255.255.255.0
> > NETWORK=XXX.XXX.XXX.0
> > ONBOOT=yes
> >
> > Can someone please help my naivety a little bit with busybox, please?
>
> Just alter /etc/network/interfaces to e.g:
>
> auto eth0
> iface eth0 inet static
> address 10.1.2.3
> netmask 255.255.255.0
> gateway 10.1.1.1
>
> no?
>
Not if you want to reach that gateway address.
You would need to change either the netmask or
use a gateway on the same sub-net (10.1.2.0/24) as the NIC address.
Mike
> >
> > --
> > Charles Krinke
> >
> >
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
>
next prev parent reply other threads:[~2011-04-28 16:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 15:15 [Buildroot] busybox network configuration Charles Krinke
2011-04-28 15:26 ` Will Moore
2011-04-28 16:14 ` Michael S. Zick [this message]
2011-04-28 16:30 ` Charles Krinke
2011-04-28 18:50 ` Charles Krinke
2011-04-28 19:18 ` Michael S. Zick
2011-04-28 20:24 ` Charles Krinke
2011-04-28 15:33 ` Peter Korsgaard
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=201104281114.05298.minimod@morethan.org \
--to=minimod@morethan.org \
--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