<?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>MQX Software SolutionsのトピックRTCS ipcfg, DHCP client, LLMNR, Network Address assignment, rebind, renew, link status</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393433#M13193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MQX4.1, 4.2, IP4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very familiar with the MQX DHCP functionality, including using DHCP options to register a machine name (DHCP option 12), and DHCP callbacks for lease renewals, etc.&amp;nbsp; This is somewhat involved, and I'm trying to get a handle on if the 'ipcfg' library can do some or all of what I want.&amp;nbsp; Any comments would be appreciated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would consider this to be the most basic network functionality (i.e. something that should be built into ipcfg):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Bind DHCP with machine host name registration (DHCP option 12) and either (at the user option):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - fixed static IP address fallback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - autoip/LLMNR fallback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if the address assignment request fails&lt;/P&gt;&lt;P&gt;- Monitor the link status (cable connect and disconnect, PHY sleep mode).&amp;nbsp; Retry DHCP on re-connect, even after autoIP address fallback.&lt;/P&gt;&lt;P&gt;- Handle DHCP lease renewal, rebind &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ipcfg_task_create handles the link monitoring, but it doesn't do binding, lease renewal, etc, as far as I can tell.&amp;nbsp; The ipcfg*dhcp functions are just one time, and don't do renew, rebind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also confused by the auto_ip parameter in these functions.&amp;nbsp; This is just a static address that is passed into these functions, correct?&amp;nbsp; Is doesn't refer the AutoIP (a.k.a. bonjour, zeroconf, AutoIP/mDNS) protocols, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, do DHCP client and LLMNR play together, or is it 'either or', or do these multi-home? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;PMT &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 17:18:58 GMT</pubDate>
    <dc:creator>pmt</dc:creator>
    <dc:date>2015-06-11T17:18:58Z</dc:date>
    <item>
      <title>RTCS ipcfg, DHCP client, LLMNR, Network Address assignment, rebind, renew, link status</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393433#M13193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MQX4.1, 4.2, IP4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very familiar with the MQX DHCP functionality, including using DHCP options to register a machine name (DHCP option 12), and DHCP callbacks for lease renewals, etc.&amp;nbsp; This is somewhat involved, and I'm trying to get a handle on if the 'ipcfg' library can do some or all of what I want.&amp;nbsp; Any comments would be appreciated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would consider this to be the most basic network functionality (i.e. something that should be built into ipcfg):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Bind DHCP with machine host name registration (DHCP option 12) and either (at the user option):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - fixed static IP address fallback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - autoip/LLMNR fallback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if the address assignment request fails&lt;/P&gt;&lt;P&gt;- Monitor the link status (cable connect and disconnect, PHY sleep mode).&amp;nbsp; Retry DHCP on re-connect, even after autoIP address fallback.&lt;/P&gt;&lt;P&gt;- Handle DHCP lease renewal, rebind &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ipcfg_task_create handles the link monitoring, but it doesn't do binding, lease renewal, etc, as far as I can tell.&amp;nbsp; The ipcfg*dhcp functions are just one time, and don't do renew, rebind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also confused by the auto_ip parameter in these functions.&amp;nbsp; This is just a static address that is passed into these functions, correct?&amp;nbsp; Is doesn't refer the AutoIP (a.k.a. bonjour, zeroconf, AutoIP/mDNS) protocols, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, do DHCP client and LLMNR play together, or is it 'either or', or do these multi-home? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;PMT &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:18:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393433#M13193</guid>
      <dc:creator>pmt</dc:creator>
      <dc:date>2015-06-11T17:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS ipcfg, DHCP client, LLMNR, Network Address assignment, rebind, renew, link status</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393434#M13194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done some experimentation and answered some of my questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ipcfg_bind_dhcp_wait() and the ipcfg link status task will do continuous DHCP with static IP address fallback.&amp;nbsp; It will retry DHCP on cable reconnect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The static fallback takes 60 seconds to get assigned because the default DHCP timeout is 60 seconds.&amp;nbsp; This is somewhat annoying, but can be changed by setting the _RTCS_dhcp_term_timeout from application code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ipcfg will not do host name registration, but it can be added by modifying ipcfg_bind_dhcp_internal to include DHCPOPT_DOMAINNAME:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned char&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parm_options[] = {DHCPOPT_MASK, DHCPOPT_DNSSERVER, DHCPOPT_ROUTER, DHCPOPT_TFTPSERVER, DHCPOPT_BOOTFILENAME, DHCPOPT_DOMAINNAME};&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;DHCP_option_variable (&amp;amp;optptr, &amp;amp;optlen, DHCPOPT_PARAMLIST, parm_options, sizeof (parm_options));&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;DHCP_option_string&amp;nbsp; (&amp;amp;optptr, &amp;amp;optlen, DHCPOPT_HOSTNAME, ipcfg_RequestedHostName);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where ipcfg_RequestedHostName is the requested host name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- (FEATURE REQUEST) --&lt;/P&gt;&lt;P&gt;It would be nice to add a function like this to ipcfg to allow a requested host name to be set:&lt;/P&gt;&lt;P&gt;void ipcfg_set_dhcpclient_hostname(const char *RequestedHostName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would also be nice that ipcfg allow retrieval of the assigned host name.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PMT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 00:47:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393434#M13194</guid>
      <dc:creator>pmt</dc:creator>
      <dc:date>2015-06-15T00:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS ipcfg, DHCP client, LLMNR, Network Address assignment, rebind, renew, link status</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393435#M13195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not seeing DHCP renewal if I set static IP fallback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the shell demo this is what I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. With network cable disconnected,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a. ipconfig init&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. ipconfig dhcp 169.254.0.3 255.255.255.0 169.254.0.1&amp;nbsp; (this will assign the IP to be 169.254.0.3 as no cable connected - )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.&amp;nbsp;&amp;nbsp; (start the dhcp poller)&lt;/P&gt;&lt;P&gt;2. Plug network cable in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d. type ipconfig and I don't see the address updating. It's still at 169.254.0.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work, if in step b. I do just an ipconfig dhcp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you're seeing something different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 22:28:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-ipcfg-DHCP-client-LLMNR-Network-Address-assignment-rebind/m-p/393435#M13195</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2015-10-29T22:28:25Z</dc:date>
    </item>
  </channel>
</rss>

