<div dir="ltr">Hi Hal,<div><br></div><div>Do you know where I can retrieve those patches? It doesn't quite make sense why there IS some Infiniband support code, such as for parsing (parse.c) and token (con flax.c) in the code, but not all of it.</div>
<div><br></div><div><br></div><div style>Reading the parts of the OFED documentation says this:</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> ===============================================================================</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> 3. IPoIB Configuration Based on DHCP</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> ===============================================================================</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">></span><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium"> </span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> Setting an IPoIB interface configuration based on DHCP (v3.0.4 which is</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> available via </span><span class="" id="OBJ_PREFIX_DWT352" style="color:rgb(0,0,139);font-family:monospace;font-size:medium"><span class="" id="OBJ_PREFIX_DWT353" style><a target="_blank" href="http://www.isc.org" style="color:rgb(0,0,139);text-decoration:none">www.isc.org</a></span></span><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">) is performed similarly to the configuration of</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> Ethernet interfaces. In other words, you need to make sure that IPoIB</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> configuration files include the following line:</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> For RedHat:</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> BOOTPROTO=dhcp</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> For SLES:</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> BOOTPROTO=dhcp</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> Note: If IPoIB configuration files are included, ifcfg-ib<n> files will be</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> installed under:</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> /etc/sysconfig/network-scripts/ on a RedHat machine</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> /etc/sysconfig/network/ on a SuSE machine</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">></span><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium"> </span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> Note: Two patches for DHCP are required for supporting IPoIB. The patch files</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> for DHCP v3.0.4 are available under the docs/dhcp/ directory.</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium"><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">></span><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium"> </span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> Standard DHCP fields holding MAC addresses are not large enough to contain an</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> IPoIB hardware address. To overcome this problem, DHCP over InfiniBand messages</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> convey a client identifier field used to identify the DHCP session. This client</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> identifier field can be used to associate an IP address with a client identifier</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> value, such that the DHCP server will grant the same IP address to any client</span><br style="color:rgb(0,0,0);font-family:monospace;font-size:medium">
<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">> that conveys this client identifier.</span><br></div><div style><br></div><div><br></div><div style>I don't see how to download an older version (3.0.4 vs. 4.2.5) nor is there a /doc/dhcp/ folder in 4.2.5 that holds patches.</div>
<div><br></div><div style>Malek</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 4, 2013 at 9:25 AM, Hal Rosenstock <span dir="ltr"><<a href="mailto:hal.rosenstock@gmail.com" target="_blank">hal.rosenstock@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Apr 4, 2013 at 9:14 AM, Malek Musleh <span dir="ltr"><<a href="mailto:malek.musleh@gmail.com" target="_blank">malek.musleh@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div dir="ltr">Hi,<div><br></div><div>I am using the latest dhcp package from ISC (dhcp-4.2.5-P1), and I am trying to configure my dhcp server for infiniband clients. The server host machine has infiniband port, as well as several client machines.</div>
<div><br></div><div>Looking through the source code, it seems that there is infiniband support (unlike prior dhcp rpms where patches need to be applied, patches of which in themselves are incomplete).</div><div>
<br></div><div>I installed the package, and when I try to run the dhcp server to listen on the infiniband port (ib0) as follows:</div><div># dhcpd ib0 -d</div><div><br></div><div>I get the following error:</div>
<div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">Internet Systems Consortium DHCP Server 4.2.5-P1</div><div style="font-family:arial,sans-serif;font-size:13px">Copyright 2004-2013 Internet Systems Consortium.</div>
<div style="font-family:arial,sans-serif;font-size:13px">All rights reserved.</div><div style="font-family:arial,sans-serif;font-size:13px">For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank">https://www.isc.org/software/dhcp/</a></div>
<div style="font-family:arial,sans-serif;font-size:13px">Wrote 0 leases to leases file.</div><div style="font-family:arial,sans-serif;font-size:13px">Unsupported device type 32 for "ib0"</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">If you did not get this software from <a href="http://ftp.isc.org/" target="_blank">ftp.isc.org</a>, please</div><div style="font-family:arial,sans-serif;font-size:13px">
get the latest from <a href="http://ftp.isc.org/" target="_blank">ftp.isc.org</a> and install that before</div><div style="font-family:arial,sans-serif;font-size:13px">requesting help.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">If you did get this software from <a href="http://ftp.isc.org/" target="_blank">ftp.isc.org</a> and have not</div><div style="font-family:arial,sans-serif;font-size:13px">
yet read the README, please read it before requesting help.</div><div style="font-family:arial,sans-serif;font-size:13px">If you intend to request help from the <a href="mailto:dhcp-server@isc.org" target="_blank">dhcp-server@isc.org</a></div>
<div style="font-family:arial,sans-serif;font-size:13px">mailing list, please read the section on the README about</div><div style="font-family:arial,sans-serif;font-size:13px">submitting bug reports and requests for help.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Please do not under any circumstances send requests for</div><div style="font-family:arial,sans-serif;font-size:13px">
help directly to the authors of this software - please</div><div style="font-family:arial,sans-serif;font-size:13px">send them to the appropriate mailing list as described in</div><div style="font-family:arial,sans-serif;font-size:13px">
the README file.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">exiting.</div><div style="font-family:arial,sans-serif;font-size:13px"><br>
</div><div style="font-family:arial,sans-serif;font-size:13px">I thought the error might be on my part due to the configuration file, but grepping through the source code for that error, in file: dhcp-4.2/dhcp-4.2.5-P1/common/bpf.c</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> case IFT_ETHER:</div><div> hw->hlen = sa->sdl_alen + 1;</div>
<div> hw->hbuf[0] = HTYPE_ETHER;</div><div> memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen);</div><div> break;</div><div> case IFT_ISO88023:</div>
<div> case IFT_ISO88024: /* "token ring" */</div><div> case IFT_ISO88025:</div><div> case IFT_ISO88026:</div><div> hw->hlen = sa->sdl_alen + 1;</div>
<div> hw->hbuf[0] = HTYPE_IEEE802;</div><div> memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen);</div><div> break;</div><div>#ifdef IFT_FDDI</div>
<div> case IFT_FDDI:</div><div> hw->hlen = sa->sdl_alen + 1;</div><div> hw->hbuf[0] = HTYPE_FDDI;</div><div> memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen);</div>
<div> break;</div><div>#endif /* IFT_FDDI */</div><div> default:</div><div> log_fatal("Unsupported device type %d for \"%s\"",</div><div> sa->sdl_type, name);</div>
<div><br></div><div><br></div><div>But nothing for Infiniband, even though HTYPE_INFINIBAND is defined in the includes/ directory. Should I be using a different version of dhcp, or is there some additional patch I need to apply.</div>
<div> </div></div></div></div></blockquote><div> </div></div></div><div>I sent out patches for this back on 4/23/11 ("Add support for DHCP over IPoIB per IETF RFC 4390") but they have not yet been incorporated into upstream ISC DHCP release. Those 2 patches were done against 4.2.1-P1 which was the latest at that time.</div>
<div> </div><div>-- Hal</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div dir="ltr"><div>
<div style="font-family:arial,sans-serif;font-size:13px"><div> </div>
<div><br></div><div>Thanks,</div><div><br></div><div>Malek</div></div></div></div>
<br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br>
</blockquote></div><br></div>