<?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 Re: disable imx8mq default eth0 dhcp in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860406#M131307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had tried, but dhcp&amp;nbsp;still worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2019 01:02:02 GMT</pubDate>
    <dc:creator>jheng-jhongwu</dc:creator>
    <dc:date>2019-01-09T01:02:02Z</dc:date>
    <item>
      <title>disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860403#M131304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems eth0 on imx8mq evk&amp;nbsp;auto gets&amp;nbsp;an&amp;nbsp;ip address after booting. But I cannot find /etc/network/interfaces on rootfs&amp;nbsp;and there is no ip=dhcp in bootargs. How does imx8mq evk&amp;nbsp;manage network interfaces? How to disable default eth0 dhcp&amp;nbsp;function?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 09:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860403#M131304</guid>
      <dc:creator>jheng-jhongwu</dc:creator>
      <dc:date>2019-01-08T09:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860404#M131305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jheng-jhongwu" rel="nofollow noopener noreferrer" target="_blank"&gt;jheng-jhongwu&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can manage the network configuration using systemd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To stop using DHCP and define a static ip address:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a file under&amp;nbsp;&lt;STRONG&gt;/lib/systemd/network &lt;/STRONG&gt;folder&amp;nbsp;named&amp;nbsp;&lt;STRONG&gt;10-eth0.network &lt;/STRONG&gt;for example and define your desired configuration:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[Match]
Name=eth0
[Network]
Address=10.0.0.100/24
Gateway=10.0.0.1‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Restart&amp;nbsp;&lt;SPAN&gt;systemd-networkd service&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;root@imx8mqevk:~# 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;/P&gt;&lt;P&gt;3. Verify&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;root@imx8mqevk:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9f:05:69:fc
 inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0
 inet6 addr: fe80::204:9fff:fe05:69fc/64 Scope:Link
 UP BROADCAST RUNNING MULTICAST DYNAMIC MTU:1500 Metric:1
 RX packets:1691402 errors:0 dropped:0 overruns:0 frame:0
 TX packets:93052 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:192346556 (183.4 MiB) TX bytes:15991089 (15.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;That's all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this reply answers your question please mark it as "correct answer".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 13:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860404#M131305</guid>
      <dc:creator>marouene_boubakri</dc:creator>
      <dc:date>2019-01-08T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860405#M131306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jheng-Jhong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also one can check linux documentation for ip=none&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/filesystems/nfs/nfsroot.txt?h=imx_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/filesystems/nfs/nfsroot.txt?h=imx_4.14.78_1.0.0_ga"&gt;nfsroot.txt\nfs\filesystems\Documentation - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 23:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860405#M131306</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-01-08T23:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860406#M131307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had tried, but dhcp&amp;nbsp;still worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 01:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860406#M131307</guid>
      <dc:creator>jheng-jhongwu</dc:creator>
      <dc:date>2019-01-09T01:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860407#M131308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After rebooting, eth0 still gets an IP. I cannot figure out what happened... Specifically, I'd like to not assign any IP&amp;nbsp;to eth0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 06:13:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860407#M131308</guid>
      <dc:creator>jheng-jhongwu</dc:creator>
      <dc:date>2019-01-09T06:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860408#M131309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally I found I have to disable connman service. Otherwise it will force doing eth0&amp;nbsp;dhcp.&lt;/P&gt;&lt;P&gt;systemctl&amp;nbsp;disable connman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 08:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860408#M131309</guid>
      <dc:creator>jheng-jhongwu</dc:creator>
      <dc:date>2019-01-09T08:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: disable imx8mq default eth0 dhcp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860409#M131310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to go through connman I prefer perform configuration through it rather than disabling it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your&amp;nbsp;board run:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# connmanctl services‍
*AR Wired ethernet_00049f04a748_cable&lt;SPAN class="line-numbers-rows"&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;Then set IP parameters:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;# connmanctl config ethernet_00049f04a748_cable --ipv4 manual 192.168.1.100 255.255.255.0 192.168.1.1&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;/P&gt;&lt;P&gt;Verify, before and after rebooting&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:192.168.1.100 Bcast:192.168.1.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:205 errors:0 dropped:0 overruns:0 frame:0
 TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:29641 (28.9 KiB) TX bytes:7822 (7.6 KiB)&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;I hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Maro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 08:01:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/disable-imx8mq-default-eth0-dhcp/m-p/860409#M131310</guid>
      <dc:creator>marouene_boubakri</dc:creator>
      <dc:date>2019-01-10T08:01:45Z</dc:date>
    </item>
  </channel>
</rss>

