From: Philip Balister <philip@balister.org>
To: "Constantin, Costin C" <costin.c.constantin@intel.com>,
"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: how to set static ip in linux
Date: Wed, 17 Dec 2014 10:06:19 -0500 [thread overview]
Message-ID: <54919BEB.7070909@balister.org> (raw)
In-Reply-To: <2B8B4B6BB45F5242AFEC714E022A4B4A27680D8A@IRSMSX101.ger.corp.intel.com>
I'd install a custom /etc/network/interfaces file via a bbappend or
similar method. There is numerous examples in google of how to set up a
static Ip via the interfaces file.
Philip
On 12/16/2014 05:08 AM, Constantin, Costin C wrote:
> Hello Sachin
>
> The easiest way to do this is by modifying the install script. Here is how:
> Suppose you cloned poky into a local dir. on your HDD drive. I use Ubuntu for this but you can use whatever certified OS (Fedora, Centos, OpenSuse) just:
>
> $ cd your_local_poky_dir
> $ gedit meta/recipes-core/initrdscripts/files/init-install.sh
> ...
> #before the line containing "umount /tgt_root" add the following
> # interface=$(ls /sys/class/net | grep eth)
> # echo "ifconfig $interface your_desired_ip netmask 255.255.255.0 up" >> /tgt_root/etc/profile
> #eg.:
> interface=$(ls /sys/class/net | grep eth)
> echo "ifconfig $interface 10.10.10.10 netmask 255.255.255.0 up" >> /tgt_root/etc/profile
> #after this comes
> umount /tgt_root
> ...
>
> Regards,
>
> Costin Constantin
> Yocto QA team
>
>
>
next prev parent reply other threads:[~2014-12-17 15:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-16 10:08 how to set static ip in linux Constantin, Costin C
2014-12-17 15:06 ` Philip Balister [this message]
2014-12-17 15:38 ` Constantin, Costin C
-- strict thread matches above, loose matches on Subject: below --
2014-12-09 15:20 sachin dhiman
2014-12-10 17:15 ` Gaurang Shastri
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=54919BEB.7070909@balister.org \
--to=philip@balister.org \
--cc=costin.c.constantin@intel.com \
--cc=yocto@yoctoproject.org \
/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 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.