[prev in list] [next in list] [prev in thread] [next in thread]
List: dhcp-users
Subject: RE: Issues in using User Class Option
From: "Jain, Saurabh" <Saurabh.Jain () landisgyr ! com>
Date: 2017-12-22 10:28:23
Message-ID: VI1PR0101MB219245ECA2E438885C20169798020 () VI1PR0101MB2192 ! eurprd01 ! prod ! exchangelabs ! com
[Download RAW message or body]
On looking at the code seems like User-Class and Vendor-class are not supported for \
DHCPv6 in version 4.3.5 and 4.3.6
File common/tables.c
static struct option dhcpv6_options[] = {
....
{ "rapid-commit", "Z", \
&dhcpv6_universe, 14, 1 }, #if 0
/* XXX: user-class contents are of the form "StA" where the
* integer describes the length of the text field. We don't have
* an atom for pre-determined-length octet strings yet, so we
* can't quite do these two.
*/
{ "user-class", "X", \
&dhcpv6_universe, 15, 1 },
{ "vendor-class", "X", \
&dhcpv6_universe, 16, 1 }, #endif
{ "vendor-opts", "Evsio.", \
&dhcpv6_universe, 17, 1 },
....
}
Is there any plan to support these DHCPv6 option in upcoming version?
Regards,
Saurabh Jain
From: dhcp-users [mailto:dhcp-users-bounces@lists.isc.org] On Behalf Of Jain, Saurabh
Sent: Friday, December 22, 2017 3:42 PM
To: Users of ISC DHCP
Subject: RE: Issues in using User Class Option
In the Server, I configured the class definition without making any change and got \
following error:
# Internet Systems Consortium DHCP Server 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/etc/dhcp/dhcpd.conf line 113: no option named vendor-class in space dhcp6
match if binary-to-ascii(10, 32, "", substring(option dhcp6.vendor-class,
^
Configuration file errors encountered -- exiting
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org<http://www.isc.org> or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Do I need to do some extra configuration?
Regards,
Saurabh Jain
From: dhcp-users [mailto:dhcp-users-bounces@lists.isc.org]<mailto:[mailto:dhcp-users-bounces@lists.isc.org]> \
On Behalf Of Bill Shirley
Sent: Friday, December 15, 2017 12:07 PM
To: dhcp-users@lists.isc.org<mailto:dhcp-users@lists.isc.org>
Subject: Re: Issues in using User Class Option
https://msdn.microsoft.com/en-us/library/cc227280.aspx
I can't advise you on how to send option 16, but on the server you can check it:
# ------------------------------------------------------------------------------
class "Microsoft" {
match if binary-to-ascii(10, 32, "", substring(option dhcp6.vendor-class, 0, 4)) \
= "311"; }
# ------------------------------------------------------------------------------
Bill
On 12/13/2017 5:17 AM, Jain, Saurabh wrote:
However, when I look out options in DHCPv6 rfc 3315 and also other links I don't \
find a way to send vendor-class-identifier in solicit packets. In DHCPv4 it is option \
number 60 but no direct mapping in DHCPv6. How do I send vendor-class-identifier in \
DHCPv6 ?
P PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS EMAIL.
This e-mail (including any attachments) is confidential and may be legally \
privileged. If you are not an intended recipient or an authorized representative of \
an intended recipient, you are prohibited from using, copying or distributing the \
information in this e-mail or its attachments. If you have received this e-mail in \
error, please notify the sender immediately by return e-mail and delete all copies of \
this message and any attachments. Thank you.
[Attachment #3 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Mangal;
panose-1:2 4 5 3 5 2 3 3 2 2;}
@font-face
{font-family:Mangal;
panose-1:2 4 5 3 5 2 3 3 2 2;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Webdings;
panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
tt
{mso-style-priority:99;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">On \
looking at the code seems like User-Class and Vendor-class are not supported for \
DHCPv6 in version 4.3.5 and 4.3.6<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">File \
common/tables.c<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">static \
struct option dhcpv6_options[] = {<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">….<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
{ "rapid-commit", \
"Z", \
\
&dhcpv6_universe, 14, 1 },<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#if \
0<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
/* XXX: user-class contents are of the form "StA" where \
the<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
* integer describes the length of the text field. We don't \
have<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
* an atom for pre-determined-length octet strings yet, so we<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
* can't quite do these two.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
*/<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
{ "user-class", \
"X", \
&n \
bsp; \
&dhcpv6_universe, 15, 1 },<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
{ "vendor-class", \
"X", \
\
&dhcpv6_universe, 16, 1 },<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#endif<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
{ "vendor-opts", \
"Evsio.", & \
nbsp; \
&dhcpv6_universe, 17, 1 },<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">….<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">}<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Is \
there any plan to support these DHCPv6 option in upcoming \
version?<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Saurabh \
Jain<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> \
dhcp-users [mailto:dhcp-users-bounces@lists.isc.org] <b>On Behalf Of </b>Jain, \
Saurabh<br> <b>Sent:</b> Friday, December 22, 2017 3:42 PM<br>
<b>To:</b> Users of ISC DHCP<br>
<b>Subject:</b> RE: Issues in using User Class Option<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In \
the Server, I configured the class definition without making any change and got \
following error:<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"># \
Internet Systems Consortium DHCP Server 4.3.5<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Copyright \
2004-2016 Internet Systems Consortium.<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">All \
rights reserved.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">For \
info, please visit <a \
href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/etc/dhcp/dhcpd.conf \
line 113: no option named vendor-class in space dhcp6<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> \
match if binary-to-ascii(10, 32, "", substring(option \
dhcp6.vendor-class,<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:# \
1F497D"> \
&n \
bsp; \
^<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Configuration \
file errors encountered -- exiting<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">If \
you think you have received this message due to a bug rather<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">than \
a configuration issue please read the section on submitting<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">bugs \
on either our web page at <a href="http://www.isc.org">www.isc.org</a> or in the \
README file<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">before \
submitting a bug. These pages explain the proper<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">process \
and the information we find helpful for debugging..<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">exiting.<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Do \
I need to do some extra configuration?<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Saurabh \
Jain<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" \
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span \
lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> \
dhcp-users <a href="mailto:[mailto:dhcp-users-bounces@lists.isc.org]">[mailto:dhcp-users-bounces@lists.isc.org]</a>
<b>On Behalf Of </b>Bill Shirley<br>
<b>Sent:</b> Friday, December 15, 2017 12:07 PM<br>
<b>To:</b> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<b>Subject:</b> Re: Issues in using User Class Option<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><a \
href="https://msdn.microsoft.com/en-us/library/cc227280.aspx">https://msdn.microsoft.com/en-us/library/cc227280.aspx</a><br>
<br>
I can't advise you on how to send option 16, but on the server you can check it:<br>
<tt><span style="font-size:10.0pt;color:#993300"># \
------------------------------------------------------------------------------</span></tt><span \
style="font-size:10.0pt;font-family:"Courier New";color:#993300"><br> \
<tt>class "Microsoft" {</tt><br> <tt> match if \
binary-to-ascii(10, 32, "", substring(option dhcp6.vendor-class, 0, 4)) = \
"311";</tt><br> <tt>}</tt><br>
<tt># ------------------------------------------------------------------------------</tt><br>
</span><br>
Bill<o:p></o:p></p>
<div>
<p class="MsoNormal">On 12/13/2017 5:17 AM, Jain, Saurabh wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D">However, when I look out options in DHCPv6 rfc 3315 and \
also other links I don’t find a way to send vendor-class-identifier in solicit \
packets. In DHCPv4 it is option number 60 but no direct mapping in DHCPv6. How \
do I send vendor-class-identifier in DHCPv6 ? </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span \
style="color:#1F497D"> </span><o:p></o:p></p> </blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p style="margin-bottom:12.0pt"><b><span \
style="font-size:10.0pt;font-family:Webdings;color:green">P</span></b><b><span \
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:green"> \
PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS EMAIL. <br>
<br>
</span></b><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">This \
e-mail (including any attachments) is confidential and may be legally privileged. If \
you are not an intended recipient or an authorized representative of an intended \
recipient, you are prohibited from using, copying or distributing the information in \
this e-mail or its attachments. If you have received this e-mail in error, please \
notify the sender immediately by return e-mail and delete all copies of this message \
and any attachments. Thank you. </span></b><b><span \
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:green"><o:p></o:p></span></b></p>
</div>
</div>
</body>
</html>
_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
--===============2016274978967899672==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic