<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Thank you very much for your advice! I am trying to understand initialization process according to your indications.</div><div>Regards from Spain<br> </div><div id="yui_3_16_0_1_1437376325939_7623"><span></span></div><br> <div id="yui_3_16_0_1_1437376325939_7626" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1437376325939_7625" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1437376325939_7624" dir="ltr"> <hr size="1"> <font id="yui_3_16_0_1_1437376325939_7627" face="Arial" size="2"> <b><span style="font-weight:bold;">De:</span></b> Bob Cochran <yocto@mindchasers.com><br> <b><span style="font-weight: bold;">Para:</span></b> Alvaro Martinez Tovar <alvaromartineztovar@yahoo.es>; Wally Yeh <wally.yeh@atrustcorp.com> <br><b><span style="font-weight: bold;">CC:</span></b> "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org> <br> <b><span style="font-weight: bold;">Enviado:</span></b> Viernes 17 de julio de 2015 2:24<br> <b><span style="font-weight: bold;">Asunto:</span></b> Re: [meta-freescale] static ip<br> </font> </div> <div id="yui_3_16_0_1_1437376325939_7631" class="y_msg_container"><br>On 07/16/2015 06:03 AM, Alvaro Martinez Tovar wrote:<br clear="none">> Sorry for I am a newbie with little experience in linux, and may ask for<br clear="none">> obvious solutions ....<br clear="none">> How can I know whether it is executed or not and when it is executed?<br clear="none">> Regards,<br clear="none">> alvaro<br clear="none">><br clear="none">> ------------------------------------------------------------------------<br clear="none">> *De:* Wally Yeh <<a id="yui_3_16_0_1_1437376325939_7719" shape="rect" ymailto="mailto:wally.yeh@atrustcorp.com" href="mailto:wally.yeh@atrustcorp.com">wally.yeh@atrustcorp.com</a>><br clear="none">> *Para:*<br clear="none">> *CC:* "<a id="yui_3_16_0_1_1437376325939_7720" shape="rect" ymailto="mailto:meta-freescale@yoctoproject.org" href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a>" <<a id="yui_3_16_0_1_1437376325939_7718" shape="rect" ymailto="mailto:meta-freescale@yoctoproject.org" href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a>><br clear="none">> *Enviado:* Jueves 16 de julio de 2015 10:31<br clear="none">> *Asunto:* Re: [meta-freescale] static ip<br clear="none">><br clear="none">> > After boot, this is what I can see with ifconfig eth0 command:<br clear="none">> > NO static ip is set on eth0 for inet<br clear="none">> ><br clear="none">> > eth0 Link encap:Ethernet HWaddr 00:04:9F:03:9F:FD<br clear="none">> > inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link<br clear="none">> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br clear="none">> > RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br clear="none">> > TX packets:19 errors:0 dropped:0 overruns:0 carrier:0<br clear="none">> > collisions:0 txqueuelen:1000<br clear="none">> > RX bytes:0 (0.0 B) TX bytes:4642 (4.5 KiB)<br clear="none">> ><br clear="none">> > However, if I execute:<br clear="none">> > /etc/init.d/networking restart<br clear="none">> > everything seems to work and I can connect to static ip<br clear="none">> ><br clear="none">> > Any suggestion will be very appreciated.<br clear="none">> > Thank you in advance<br clear="none">><br clear="none">> it seems like /etc/init.d/networking is not executed at boot or<br clear="none">> executed when bad timing.<br clear="none"><br clear="none"><br clear="none">Since you say you're new to Linux, the following might be helpful to <br clear="none">know in debugging your init scripts:<br clear="none"><br clear="none"><br clear="none">You can add a "set -x" to the top of your networking script to see what <br clear="none">it's doing and how it's evaluating the conditional logic in the script ( <br clear="none">don't actually include the quotes ).<br clear="none"><br clear="none">Add some additional echo statements in your scripts to help you figure <br clear="none">out what's going on. You can also do the same with other scripts in <br clear="none">the init.d directory.<br clear="none"><br clear="none">You're probably booting up at runlevel 5 ( see inittab ). You can see <br clear="none">the order of your initscripts booting by looking in the /etc/rc5.d <br clear="none">directory. You can also play around with the ordering of initialization <br clear="none">by changing the prefix number of the file names ( they are symbolic <br clear="none">links back to the /etc/init.d directory.<br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none">><br clear="none">> Wally<br clear="none">><br clear="none">><br clear="none">><br clear="none">> --<br clear="none">> _______________________________________________<br clear="none">> meta-freescale mailing list<br clear="none">> <a shape="rect" ymailto="mailto:meta-freescale@yoctoproject.org" href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a> <mailto:<a shape="rect" ymailto="mailto:meta-freescale@yoctoproject.org" href="mailto:meta-freescale@yoctoproject.org">meta-freescale@yoctoproject.org</a>><div class="qtdSeparateBR"><br><br></div><div class="yqt1649028078" id="yqtfd33495"><br clear="none">> <a shape="rect" href="https://lists.yoctoproject.org/listinfo/meta-freescale" target="_blank">https://lists.yoctoproject.org/listinfo/meta-freescale</a><br clear="none">><br clear="none">><br clear="none">><br clear="none">><br clear="none"><br clear="none"></div><br><br></div> </div> </div> </div></body></html>