Tested and I have same result (even asking the client to claim it).<div><br></div><div>I think, from my knowledge, that cid (opt 61) is only valuable for dhcp server (why the client asks the server for things it already knows). Do you have specials needs for doing this ?</div>
<div><br></div><div>One possible way could be to send back value via a private option (range 224-254) :</div><div><br></div><div>option cid-sent-back code 224 = string;</div><div>option cid-sent-back = option dhcp-client-identifier;</div>
<div>option dhcp-parameter-request-list 1,3,6,12,15,26,28,42,224;</div><div><br></div><div>regards,</div><div>laurent</div><div><br><br><div class="gmail_quote">2011/11/24 Dima Fadeyev <span dir="ltr"><<a href="mailto:dima@scancom.es">dima@scancom.es</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000">
Thanks for your reply, <br>
<br>
I've included this line into my dhcpd.conf:<br>
option dhcp-parameter-request-list 1,3,6,12,15,26,28,42,61;<br>
<br>
As you can see, option 61 is included. However I still can't make
dhcp server include the option 61 into dhcpoffer. This is how my
dhcpdiscover and dhcpoffer packets look like right now:<br>
<br>
On 11/23/2011 08:21 PM, Laurent PROUFF wrote:<br>
TIME: 16:00:11.283846<br>
IP: > (00:d0:cb:cf:d0:ab) > (Broadcast)<br>
OP: 1 (BOOTPREQUEST)<br>
HTYPE: 1 (Ethernet)<br>
HLEN: 6<br>
HOPS: 0<br>
XID: 64217936<br>
SECS: 0<br>
FLAGS: 0<br>
CIADDR: 0.0.0.0<br>
YIADDR: 0.0.0.0<br>
SIADDR: 0.0.0.0<br>
GIADDR: 0.0.0.0<br>
CHADDR: 00:d0:cb:cf:d0:ab:00:00:00:00:00:00:00:00:00:00<br>
SNAME: .<br>
FNAME: .<br>
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)<br>
OPTION: 61 ( 7) Client-identifier 01:00:d0:cb:cf:d0:ab<br>
OPTION: 60 ( 11) Vendor class identifier udhcp 1.9.2<br>
OPTION: 57 ( 2) Maximum DHCP message size 576<br>
OPTION: 55 ( 8) Parameter Request List 1 (Subnet mask)<br>
3 (Routers)<br>
6 (DNS server)<br>
12 (Host name)<br>
15 (Domainname)<br>
26 (Interface MTU)<br>
28 (Broadcast address)<br>
42 (NTP servers)<br>
<br>
---------------------------------------------------------------------------<br>
TIME: 16:00:11.284036<br>
IP: > (00:22:4d:38:37:27) > (00:d0:cb:cf:d0:ab)<br>
OP: 2 (BOOTPREPLY)<br>
HTYPE: 1 (Ethernet)<br>
HLEN: 6<br>
HOPS: 0<br>
XID: 64217936<br>
SECS: 0<br>
FLAGS: 0<br>
CIADDR: 0.0.0.0<br>
YIADDR: 10.0.0.154<br>
SIADDR: 0.0.0.0<br>
GIADDR: 0.0.0.0<br>
CHADDR: 00:d0:cb:cf:d0:ab:00:00:00:00:00:00:00:00:00:00<br>
SNAME: .<br>
FNAME: .<br>
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)<br>
OPTION: 54 ( 4) Server identifier 10.0.0.32<br>
OPTION: 51 ( 4) IP address leasetime 340600 (3d22h36m40s)<br>
OPTION: 1 ( 4) Subnet mask 255.255.255.0<br>
OPTION: 3 ( 4) Routers 10.0.0.2<br>
OPTION: 6 ( 8) DNS server 10.0.0.2,8.8.8.8<br>
OPTION: 12 ( 7) Host name foobar2<br>
OPTION: 15 ( 11) Domainname <a href="http://example.com" target="_blank">example.com</a><br>
OPTION: 26 ( 2) Interface MTU 1500<br>
OPTION: 28 ( 4) Broadcast address 10.0.0.255<br>
OPTION: 42 ( 4) NTP servers 10.0.0.32<br>
<br>
Best regards,<br><font color="#888888">
Dima Fadeyev</font><div><div></div><div class="h5"><br>
<blockquote type="cite">hello,
<div><br>
</div>
<div> maybe it can help.... (from man dhcp-options)</div>
<div><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><dt>
<b style="font-weight:bold">option dhcp-<span style="background-color:rgb(255,204,204)">parameter</span>-request-<span style="background-color:rgb(255,204,204)">list</span></b> <i style="font-style:italic">uint16</i> [<b style="font-weight:bold">,</b> <i style="font-style:italic">uint16</i>... ]<b style="font-weight:bold">;</b></dt>
<dt>This option, when sent by the client, specifies which
options the client wishes the server to return. Normally, in
the <span style="background-color:rgb(255,204,204)">ISC</span> DHCP client, this is done
using the <i style="font-style:italic">request</i> statement.
If this option is not specified by the client, the DHCP
server will normally return every option that is valid in
scope and that fits into the reply. When this option is
specified on the server, the server returns the specified
options. This can be used to force a client to take options
that it hasn't requested, and it can also be used to tailor
the response of the DHCP server for clients that may need a
more limited set of options than those the server would
normally return.</dt>
<dt><br>
</dt>
<dt>regards,</dt>
<dt>laurent</dt>
</span></div>
<div><br>
<div class="gmail_quote">2011/11/23 Dima Fadeyev <span dir="ltr"><<a href="mailto:dima@scancom.es" target="_blank">dima@scancom.es</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<br>
<br>
I have a quick question. Is it possible to make ISC dhcpd
server insert the option 61 (client id) in DHCPOFFER, in
case if it is present in DHCPDISCOVER?<br>
The ISC dhcpd version we are using is dhcp-4.1.1
(dhcp-4.1.1-12.P1.el6_0.4.x86_64 CentOS rpm).<br>
<br>
Thanks in advance<br>
<font color="#888888">
<br>
-- <br>
Dima Fadeyev<br>
<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>
</font></blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
dhcp-users mailing list
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">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></div>