Issues in using User Class Option

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues in using User Class Option

Jain, Saurabh

Hi All,

 

I am having difficulty in using  User class option. I am doing following configuration in the DHCP configuration file  :

 

option dhcp6.rapid-commit;

 

Option space Test code width 2 length width 2 hash size 17;

option Test.ADDR code 1 = array of ip6-address;

 

option Test. ADDR::1;

 

 

class "Test-Class" {

vendor-option-space Test;

option Test. ADDR::3;

}

 

subclass "Test-Class" "TestsubClass" {

vendor-option-space Test;

option Test. ADDR::2;

}

 

In the Solicit packet, I am sending the User class option as per section 22.15 of RFC 3315 (DHCPv6). In the user-class-data field I have included the class name as “TestsubClass”, but in reply dhcpv6 server is not sending any user class.   I have tested by sending “Test-Class” also in the user-class data field but server is not responding with the user class details.

 

Can you please let  me know the correct configuration? And what should be the content of solicit request ?

 

Thanks a lot in advance.

 

Regards,

Saurabh Jain


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.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Issues in using User Class Option

Bill Shirley-2
I've never seen a class without a 'match' statement.  Are you sure that's valid?:
# ------------------------------------------------------------------------------
class "Other_mobile" {
    match hardware;
    set member_of = "mobile_device";
}
# ------------------------------------------------------------------------------
subclass "Other_mobile"    1:d8:1d:72:41:3c:81;    # Moms-5S

Also when you're using the option statement, there doesn't appear to be a space between
Test.ADDR and ::1;
Example:
class "vendor-classes" {
    match option vendor-class-identifier;
}
subclass "vendor-classes"    "MSFT 5.0" {    # all Windows 2000 DHCP clients
    vendor-option-space Win2k;
    option Win2k.netbios-over-tcpip        0;    # enable
}

Bill

On 12/12/2017 5:33 AM, Jain, Saurabh wrote:

Hi All,

 

I am having difficulty in using  User class option. I am doing following configuration in the DHCP configuration file  :

 

option dhcp6.rapid-commit;

 

Option space Test code width 2 length width 2 hash size 17;

option Test.ADDR code 1 = array of ip6-address;

 

option Test. ADDR::1;

 

 

class "Test-Class" {

vendor-option-space Test;

option Test. ADDR::3;

}

 

subclass "Test-Class" "TestsubClass" {

vendor-option-space Test;

option Test. ADDR::2;

}

 

In the Solicit packet, I am sending the User class option as per section 22.15 of RFC 3315 (DHCPv6). In the user-class-data field I have included the class name as “TestsubClass”, but in reply dhcpv6 server is not sending any user class.   I have tested by sending “Test-Class” also in the user-class data field but server is not responding with the user class details.

 

Can you please let  me know the correct configuration? And what should be the content of solicit request ?

 

Thanks a lot in advance.

 

Regards,

Saurabh Jain


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.



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Issues in using User Class Option

Jain, Saurabh

Thanks for your response.

 

The sample mentioned in manual also indicates use of

 

class "vendor-classes" {
    match option vendor-class-identifier;
}

 

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 ?

 

Space issue in line option Test. ADDR::1; was a typo error in mail.

 

Also is “vendor-classes” in https://www.isc.org/wp-content/uploads/2017/08/dhcp43options.html#VENDOR ENCAPSULATED OPTIONS is a keyword or just a sample name used for example?

 

Regards,

Saurabh Jain

 

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of Bill Shirley
Sent: Wednesday, December 13, 2017 1:49 AM
To: [hidden email]
Subject: Re: Issues in using User Class Option

 

I've never seen a class without a 'match' statement.  Are you sure that's valid?:
# ------------------------------------------------------------------------------
class "Other_mobile" {
    match hardware;
    set member_of = "mobile_device";
}
# ------------------------------------------------------------------------------
subclass "Other_mobile"    1:d8:1d:72:41:3c:81;    # Moms-5S

Also when you're using the option statement, there doesn't appear to be a space between
Test.ADDR and ::1;
Example:
class "vendor-classes" {
    match option vendor-class-identifier;
}
subclass "vendor-classes"    "MSFT 5.0" {    # all Windows 2000 DHCP clients
    vendor-option-space Win2k;
    option Win2k.netbios-over-tcpip        0;    # enable
}

Bill

On 12/12/2017 5:33 AM, Jain, Saurabh wrote:

Hi All,

 

I am having difficulty in using  User class option. I am doing following configuration in the DHCP configuration file  :

 

option dhcp6.rapid-commit;

 

Option space Test code width 2 length width 2 hash size 17;

option Test.ADDR code 1 = array of ip6-address;

 

option Test. ADDR::1;

 

 

class "Test-Class" {

vendor-option-space Test;

option Test. ADDR::3;

}

 

subclass "Test-Class" "TestsubClass" {

vendor-option-space Test;

option Test. ADDR::2;

}

 

In the Solicit packet, I am sending the User class option as per section 22.15 of RFC 3315 (DHCPv6). In the user-class-data field I have included the class name as “TestsubClass”, but in reply dhcpv6 server is not sending any user class.   I have tested by sending “Test-Class” also in the user-class data field but server is not responding with the user class details.

 

Can you please let  me know the correct configuration? And what should be the content of solicit request ?

 

Thanks a lot in advance.

 

Regards,

Saurabh Jain

 

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.




_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Issues in using User Class Option

Bill Shirley-2
"vendor-classes" is just a name like "Other_mobile".

Did you put a 'match' in "Test-Class"?

http://www.ipamworldwide.com/ipam/isc-dhcpv6-options.html

Bill

On 12/13/2017 5:17 AM, Jain, Saurabh wrote:

Thanks for your response.

 

The sample mentioned in manual also indicates use of

 

class "vendor-classes" {
    match option vendor-class-identifier;
}

 

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 ?

 

Space issue in line option Test. ADDR::1; was a typo error in mail.

 

Also is “vendor-classes” in https://www.isc.org/wp-content/uploads/2017/08/dhcp43options.html#VENDOR ENCAPSULATED OPTIONS is a keyword or just a sample name used for example?

 

Regards,

Saurabh Jain

 

 

From: dhcp-users [[hidden email]] On Behalf Of Bill Shirley
Sent: Wednesday, December 13, 2017 1:49 AM
To: [hidden email]
Subject: Re: Issues in using User Class Option

 

I've never seen a class without a 'match' statement.  Are you sure that's valid?:
# ------------------------------------------------------------------------------
class "Other_mobile" {
    match hardware;
    set member_of = "mobile_device";
}
# ------------------------------------------------------------------------------
subclass "Other_mobile"    1:d8:1d:72:41:3c:81;    # Moms-5S

Also when you're using the option statement, there doesn't appear to be a space between
Test.ADDR and ::1;
Example:
class "vendor-classes" {
    match option vendor-class-identifier;
}
subclass "vendor-classes"    "MSFT 5.0" {    # all Windows 2000 DHCP clients
    vendor-option-space Win2k;
    option Win2k.netbios-over-tcpip        0;    # enable
}

Bill

On 12/12/2017 5:33 AM, Jain, Saurabh wrote:

Hi All,

 

I am having difficulty in using  User class option. I am doing following configuration in the DHCP configuration file  :

 

option dhcp6.rapid-commit;

 

Option space Test code width 2 length width 2 hash size 17;

option Test.ADDR code 1 = array of ip6-address;

 

option Test. ADDR::1;

 

 

class "Test-Class" {

vendor-option-space Test;

option Test. ADDR::3;

}

 

subclass "Test-Class" "TestsubClass" {

vendor-option-space Test;

option Test. ADDR::2;

}

 

In the Solicit packet, I am sending the User class option as per section 22.15 of RFC 3315 (DHCPv6). In the user-class-data field I have included the class name as “TestsubClass”, but in reply dhcpv6 server is not sending any user class.   I have tested by sending “Test-Class” also in the user-class data field but server is not responding with the user class details.

 

Can you please let  me know the correct configuration? And what should be the content of solicit request ?

 

Thanks a lot in advance.

 

Regards,

Saurabh Jain

 

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.




_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Issues in using User Class Option

Jain, Saurabh

Below are the configuration I have made in dhcp.conf

 

 

log-facility local7;

Option space Test code width 2 length width 2 hash size 17;

option Test.ADDR code 1 = array of ip6-address;

option Test.ADDR ::1;

 

 

class "Testclass" {

 

match if option dhcp6.vendor-opts = 00:00:20:00;

 

option dhcp6.vendor-opts  00:00:20:00:

00:01:00:0c:

48:65:6c:6c:6f:20:77:6f:72:6c:64:21;

 

vendor-option-space Test;

option Test.ADDR ::3;

}

 

 

In the client solicit packet,  I have included Vendor specific information (17), with enterprise id as 8192, option request (15) with requested option code 17, and user class option (15) with data as “Testclass”. 

 

 

Logs from the DHCPv6 server:

 

 

Copyright 2004-2016 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

class match: (eq (option dhcp6.vendor-opt 00:00:20:00)

exec: supersede option server.ddns-hostname

exec: supersede option server.ddns-domainname

exec: supersede option server.ddns-rev-domainname

exec: supersede option dhcp6.rapid-commit

exec: supersede option server.default-lease-time

exec: supersede option server.max-lease-time

exec: supersede option server.log-facility

exec: supersede option Test.ADDR

Config file: /etc/dhcp/dhcpd.conf

Database file: /var/lib/dhcp/dhcpd6.leases

PID file: /var/run/dhcpd6.pid

data: const = b8

Wrote 0 class decls to leases file.

Wrote 0 NA, 0 TA, 0 PD leases to lease file.

Bound to *:547

Listening on Socket/5/tap0/fd00::/64

Sending on   Socket/5/tap0/fd00::/64

exec: supersede option server.ddns-hostname

exec: supersede option server.ddns-domainname

exec: supersede option server.ddns-rev-domainname

exec: supersede option dhcp6.rapid-commit

exec: supersede option server.default-lease-time

exec: supersede option server.max-lease-time

exec: supersede option server.log-facility

exec: supersede option Test.ADDR

Server starting service.

Solicit message from fe80::daf6:c8ff:feb0:8f15 port 546, transaction ID 0x336E00

checking against class Testsubclass...

data: option dhcp6.vendor-opts = NULL

data: const = 00:00:20:00

bool: equal = false

bool: check (default) returns false

exec: evaluate: succeeded

exec: supersede option server.ddns-hostname

exec: supersede option server.ddns-domainname

exec: supersede option server.ddns-rev-domainname

exec: supersede option dhcp6.rapid-commit

exec: supersede option server.default-lease-time

exec: supersede option server.max-lease-time

exec: supersede option server.log-facility

exec: supersede option Test.ADDR

Picking pool address fd00::ff76:9e7f

exec: supersede option server.ddns-hostname

exec: supersede option server.ddns-domainname

exec: supersede option server.ddns-rev-domainname

exec: supersede option dhcp6.rapid-commit

exec: supersede option server.default-lease-time

exec: supersede option server.max-lease-time

exec: supersede option server.log-facility

exec: supersede option Test.ADDR

data: const = ff:ff:ff:ff

Reply NA: address fd00::ff76:9e7f to client with duid 00:03:00:06:00:1c:64:04:80:77:13:1c iaid = -2139679972 valid for 4294967295 seconds

data: const = ""

Sending Reply to fe80::daf6:c8ff:feb0:8f15 port 546

 

 

Even when I change condition from “match if option dhcp6.vendor-opts = 00:00:20:00;” to  “match if option dhcp6.vendor-opts = 84;”, server does not send back any data.

 

Regards,

Saurabh Jain

 

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of Bill Shirley
Sent: Wednesday, December 13, 2017 9:17 PM
To: [hidden email]
Subject: Re: Issues in using User Class Option

 

"vendor-classes" is just a name like "Other_mobile".

Did you put a 'match' in "Test-Class"?

http://www.ipamworldwide.com/ipam/isc-dhcpv6-options.html

Bill

On 12/13/2017 5:17 AM, Jain, Saurabh wrote:

Thanks for your response.

 

The sample mentioned in manual also indicates use of

 

class "vendor-classes" {
    match option vendor-class-identifier;
}

 

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 ?

 

Space issue in line option Test. ADDR::1; was a typo error in mail.

 

Also is “vendor-classes” in https://www.isc.org/wp-content/uploads/2017/08/dhcp43options.html#VENDOR ENCAPSULATED OPTIONS is a keyword or just a sample name used for example?

 

Regards,

Saurabh Jain

 

 

From: dhcp-users [[hidden email]] On Behalf Of Bill Shirley
Sent: Wednesday, December 13, 2017 1:49 AM
To: [hidden email]
Subject: Re: Issues in using User Class Option

 

I've never seen a class without a 'match' statement.  Are you sure that's valid?:
# ------------------------------------------------------------------------------
class "Other_mobile" {
    match hardware;
    set member_of = "mobile_device";
}
# ------------------------------------------------------------------------------
subclass "Other_mobile"    1:d8:1d:72:41:3c:81;    # Moms-5S

Also when you're using the option statement, there doesn't appear to be a space between
Test.ADDR and ::1;
Example:
class "vendor-classes" {
    match option vendor-class-identifier;
}
subclass "vendor-classes"    "MSFT 5.0" {    # all Windows 2000 DHCP clients
    vendor-option-space Win2k;
    option Win2k.netbios-over-tcpip        0;    # enable
}

Bill

On 12/12/2017 5:33 AM, Jain, Saurabh wrote:

Hi All,

 

I am having difficulty in using  User class option. I am doing following configuration in the DHCP configuration file  :

 

option dhcp6.rapid-commit;

 

Option space Test code width 2 length width 2 hash size 17;

option Test.ADDR code 1 = array of ip6-address;

 

option Test. ADDR::1;

 

 

class "Test-Class" {

vendor-option-space Test;

option Test. ADDR::3;

}

 

subclass "Test-Class" "TestsubClass" {

vendor-option-space Test;

option Test. ADDR::2;

}

 

In the Solicit packet, I am sending the User class option as per section 22.15 of RFC 3315 (DHCPv6). In the user-class-data field I have included the class name as “TestsubClass”, but in reply dhcpv6 server is not sending any user class.   I have tested by sending “Test-Class” also in the user-class data field but server is not responding with the user class details.

 

Can you please let  me know the correct configuration? And what should be the content of solicit request ?

 

Thanks a lot in advance.

 

Regards,

Saurabh Jain

 

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.





_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 




_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

 


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Issues in using User Class Option

Bill Shirley-2
It appears the client is NOT sending dhcp6.vendor-opts.

Bill

On 12/14/2017 4:33 AM, Jain, Saurabh wrote:

checking against class Testsubclass...

data: option dhcp6.vendor-opts = NULL

data: const = 00:00:20:00

bool: equal = false

bool: check (default) returns false



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Issues in using User Class Option

Jain, Saurabh

DHCPv6 Client Packet captured from Wireshark

 

DHCPv6

    Message type: Solicit (1)

    Transaction ID: 0x38ab00

    Client Identifier

    Elapsed time

    Identity Association for Non-temporary Address

    Rapid Commit

    User Class

        Option: User Class (15)

        Length: 14

        Value: 000c54657374737562636c617373

    Option Request

        Option: Option Request (6)

        Length: 2

        Value: 0011

        Requested Option code: Vendor-specific Information (17)

    Vendor-specific Information

        Option: Vendor-specific Information (17)

        Length: 4

        Value: 00002000

 

Regards,

Saurabh Jain

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of Bill Shirley
Sent: Thursday, December 14, 2017 6:39 PM
To: [hidden email]
Subject: Re: Issues in using User Class Option

 

It appears the client is NOT sending dhcp6.vendor-opts.

Bill

On 12/14/2017 4:33 AM, Jain, Saurabh wrote:

checking against class Testsubclass...

data: option dhcp6.vendor-opts = NULL

data: const = 00:00:20:00

bool: equal = false

bool: check (default) returns false

 


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.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Issues in using User Class Option

Thomas Markwalder
In reply to this post by Jain, Saurabh
Hello:

There was an issue introduced in ISC DHCP 4.3.5 which broke the server's ability to send dhcp6.vendor-opts.  This
has been corrected in our upcoming feature release, 4.4.0, due out Q1/2018:

- The ability of the server to send back dhcp6.vendor-opts values has been
  restored. A change in 4.3.5 (see #29246) which enabled it to send back the
  FQDN option unfortunately broke its ability to send back dhcp6.vendor-opts.
  Thanks to Sumant Gupta (sumantgupta at gmail dot com) of Landis+Gry for
  bringing this issue to our attention.
  [ISC-Bugs #46427]

It will be included in our next maintenance release, 4.3.7, but it's date is TBD>

I have attached a patch which corrects the issue for 4.3.6.

Regards,

Thomas Markwalder
ISC Software Enigneering



On 12/14/2017 04:33 AM, Jain, Saurabh wrote:

Solicit message from fe80::daf6:c8ff:feb0:8f15 port 546, transaction ID 0x336E00

checking against class Testsubclass...

data: option dhcp6.vendor-opts = NULL



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

rt46427_v4.3.6.patch (578 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Issues in using User Class Option

Jain, Saurabh

Hi,

 

Sumant is my colleague and I have the mentioned patch applied in DHCP 4.3.5.  But when I am using the concept of class and subclass I am facing issues. Server is not responding back with the class data. Please see mails below.

 

Also when I configured dhcp6.vendor-opts without defining classes and subclasses, than even with the mismatch in enterprise Id I configured and the requested enterprise Id in solicit packet, server is sending back with the configured enterprise Id.

 

 

Regards,

Saurabh Jain

 

From: dhcp-users [mailto:[hidden email]] On Behalf Of Thomas Markwalder
Sent: Thursday, December 14, 2017 7:23 PM
To: [hidden email]
Subject: Re: Issues in using User Class Option

 

Hello:

There was an issue introduced in ISC DHCP 4.3.5 which broke the server's ability to send dhcp6.vendor-opts.  This
has been corrected in our upcoming feature release, 4.4.0, due out Q1/2018:

- The ability of the server to send back dhcp6.vendor-opts values has been
  restored. A change in 4.3.5 (see #29246) which enabled it to send back the
  FQDN option unfortunately broke its ability to send back dhcp6.vendor-opts.
  Thanks to Sumant Gupta (sumantgupta at gmail dot com) of Landis+Gry for
  bringing this issue to our attention.
  [ISC-Bugs #46427]

It will be included in our next maintenance release, 4.3.7, but it's date is TBD>

I have attached a patch which corrects the issue for 4.3.6.

Regards,

Thomas Markwalder
ISC Software Enigneering


On 12/14/2017 04:33 AM, Jain, Saurabh wrote:

Solicit message from fe80::daf6:c8ff:feb0:8f15 port 546, transaction ID 0x336E00

checking against class Testsubclass...

data: option dhcp6.vendor-opts = NULL

 


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.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Issues in using User Class Option

Bill Shirley-2
In reply to this post by Jain, Saurabh
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 ?

 



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Issues in using User Class Option

Jain, Saurabh

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 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:[hidden email]] On Behalf Of Bill Shirley
Sent: Friday, December 15, 2017 12:07 PM
To: [hidden email]
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.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: Issues in using User Class Option

Jain, Saurabh

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:[hidden email]] 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 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 [hidden email] On Behalf Of Bill Shirley
Sent: Friday, December 15, 2017 12:07 PM
To: [hidden email]
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.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users