From: Bob Cochran <yocto@mindchasers.com>
To: Alvaro Martinez Tovar <alvaromartineztovar@yahoo.es>,
Wally Yeh <wally.yeh@atrustcorp.com>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: static ip
Date: Thu, 16 Jul 2015 20:24:20 -0400 [thread overview]
Message-ID: <55A84B34.7000201@mindchasers.com> (raw)
In-Reply-To: <1861656722.4699532.1437041003802.JavaMail.yahoo@mail.yahoo.com>
On 07/16/2015 06:03 AM, Alvaro Martinez Tovar wrote:
> Sorry for I am a newbie with little experience in linux, and may ask for
> obvious solutions ....
> How can I know whether it is executed or not and when it is executed?
> Regards,
> alvaro
>
> ------------------------------------------------------------------------
> *De:* Wally Yeh <wally.yeh@atrustcorp.com>
> *Para:*
> *CC:* "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
> *Enviado:* Jueves 16 de julio de 2015 10:31
> *Asunto:* Re: [meta-freescale] static ip
>
> > After boot, this is what I can see with ifconfig eth0 command:
> > NO static ip is set on eth0 for inet
> >
> > eth0 Link encap:Ethernet HWaddr 00:04:9F:03:9F:FD
> > inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link
> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:1000
> > RX bytes:0 (0.0 B) TX bytes:4642 (4.5 KiB)
> >
> > However, if I execute:
> > /etc/init.d/networking restart
> > everything seems to work and I can connect to static ip
> >
> > Any suggestion will be very appreciated.
> > Thank you in advance
>
> it seems like /etc/init.d/networking is not executed at boot or
> executed when bad timing.
Since you say you're new to Linux, the following might be helpful to
know in debugging your init scripts:
You can add a "set -x" to the top of your networking script to see what
it's doing and how it's evaluating the conditional logic in the script (
don't actually include the quotes ).
Add some additional echo statements in your scripts to help you figure
out what's going on. You can also do the same with other scripts in
the init.d directory.
You're probably booting up at runlevel 5 ( see inittab ). You can see
the order of your initscripts booting by looking in the /etc/rc5.d
directory. You can also play around with the ordering of initialization
by changing the prefix number of the file names ( they are symbolic
links back to the /etc/init.d directory.
>
> Wally
>
>
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org <mailto:meta-freescale@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
>
>
>
next prev parent reply other threads:[~2015-07-17 0:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 8:17 static ip Alvaro Martinez Tovar
2015-07-16 8:31 ` Wally Yeh
2015-07-16 10:03 ` Alvaro Martinez Tovar
2015-07-16 10:17 ` Wally Yeh
2015-07-17 0:24 ` Bob Cochran [this message]
2015-07-20 7:44 ` Alvaro Martinez Tovar
2015-07-16 12:55 ` Diego
2015-07-17 1:05 ` Hiromichi Matsumura
2015-07-20 7:31 ` Alvaro Martinez Tovar
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=55A84B34.7000201@mindchasers.com \
--to=yocto@mindchasers.com \
--cc=alvaromartineztovar@yahoo.es \
--cc=meta-freescale@yoctoproject.org \
--cc=wally.yeh@atrustcorp.com \
/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.