<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic cannot get static IP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756983#M117752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Hi,&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;I am using Linux-krogoth over IMX6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;I want the ethernet interface 'eth0' to have static ip address&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;for that i edit the file&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;vi /etc/network/interfaces&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #3e4349; background: #eeeeee; margin: 15px -30px; padding: 7px 30px;"&gt;# The primary network interface auto eth0 iface eth0 inet static&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address 0.0.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; netmask 255.255.255.0&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;i changed dhcp to static&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;I added&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;ifconfig eth0 0.0.0.0&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;to the startup script of linux (rc.local)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;still i am getting a dhcp address at eth0 interface&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;if there is no dhcp server available in network i get&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;169.254.x.x ip address&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;if dhcp server is available ,it gets an dhcp ip address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;What might be the issue , do i need to change in any other file to keep eth0 interface ip as static ??&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Please resolve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Regards&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Sameer&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Dec 2017 01:24:28 GMT</pubDate>
    <dc:creator>sameerarvikar</dc:creator>
    <dc:date>2017-12-02T01:24:28Z</dc:date>
    <item>
      <title>cannot get static IP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756983#M117752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Hi,&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;I am using Linux-krogoth over IMX6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;I want the ethernet interface 'eth0' to have static ip address&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;for that i edit the file&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;vi /etc/network/interfaces&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #3e4349; background: #eeeeee; margin: 15px -30px; padding: 7px 30px;"&gt;# The primary network interface auto eth0 iface eth0 inet static&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; address 0.0.0.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; netmask 255.255.255.0&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;i changed dhcp to static&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;I added&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;ifconfig eth0 0.0.0.0&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;to the startup script of linux (rc.local)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;still i am getting a dhcp address at eth0 interface&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;if there is no dhcp server available in network i get&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;169.254.x.x ip address&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;if dhcp server is available ,it gets an dhcp ip address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;What might be the issue , do i need to change in any other file to keep eth0 interface ip as static ??&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Please resolve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Regards&lt;/SPAN&gt;&lt;BR style="color: #1c2933; background-color: #ffffff; font-size: 13px;" /&gt;&lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Sameer&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 01:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756983#M117752</guid>
      <dc:creator>sameerarvikar</dc:creator>
      <dc:date>2017-12-02T01:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: cannot get static IP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756984#M117753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #1c2933; background-color: #ffffff; font-size: 13px;"&gt;Sameer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try kernel boot parameter ip=static_ip_address&lt;/P&gt;&lt;P&gt;as described in Table 11. Common kernel boot parameters attached&lt;/P&gt;&lt;P&gt;Release Notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2017 22:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756984#M117753</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-12-03T22:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: cannot get static IP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756985#M117754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;This is a reply in case a user get into this thread using the search.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Network configuration can be done through systemd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To stop using DHCP and define a static ip address:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;1. Create a configuration file&amp;nbsp; with desired parameters under&amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold;"&gt;/lib/systemd/network&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# cat &amp;gt;&amp;gt; /lib/systemd/network/10-eth0.network &amp;lt;&amp;lt; EOF
[Match]
Name=eth0
[Network]
Address=10.0.0.100/24
Gateway=10.0.0.1
EOF‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;2. Restart systemd-networkd service&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# systemctl restart systemd-networkd.service&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;3. Verify&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9f:04:a7:48
 inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0
 inet6 addr: fe80::204:9fff:fe04:a748/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
 RX packets:2036376 errors:0 dropped:0 overruns:0 frame:0
 TX packets:121193 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:230628591 (219.9 MiB) TX bytes:20226696 (19.2 MiB)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If this reply was useful for you, please&amp;nbsp;mark it as "Correct answer" to help other users accessing it easily.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Maro&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 15:05:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cannot-get-static-IP/m-p/756985#M117754</guid>
      <dc:creator>marouene_boubakri</dc:creator>
      <dc:date>2019-01-08T15:05:59Z</dc:date>
    </item>
  </channel>
</rss>

