0

My request is to include option 17 sub-options 11, 12 and 13 in DHCPv6 solicit/request and I configured the same in dhclient6.conf on my Ubuntu as below.

send dhcp6.vendor-opts 00:00:0d:e9:00:0b:00:06:42:44:56:45:52:30:00:0c:00:03:6c:61:6e:00:0d:00:06:76:61:61:75:61:39;

From packet trace I can see option 17 in solicit/request but sub-options are not proper and I guess not encapsulated.

Output snippet from tshark:

Vendor-specific Information
    Option: Vendor-specific Information (17)
    Length: 31
    Value: 00000de9000b0006424456455230000c00036c616e000d00...
    Enterprise ID: The Broadband Forum (3561)
    option
        Option code: 11
        Option length: 6
        Option data: 424456455230
    option
        Option code: 12
        Option length: 3
        Option data: 6c616e
    option
        Option code: 13
        Option length: 6
        Option data: 766161756139

Can someone please help me on how to include sub-options in a correct format.

What I tried so far:

  1. Went through the RFC and configured as per the format by including option_code and option_len but got malformed packet.
  2. Referred similar type of question and configured option-17 sub-option 2 which is absolutely fine but problem occurs with sub-options 11, 12 and 13.

Any help would be appreciated.

7
  • Still looking for some assistance on the above question. Any help or leads would be appreciated.. Jan 6 '21 at 16:51
  • In your tshark damp everything is fine. But you have a mistake in dhcp6.vendor-opts line. You set option 12 twice. Replace 00:0c:00:06 with 00:0d:00:06.
    – Hedgehog
    Jan 12 '21 at 14:49
  • @Hedgehog Sorry, typo error and I edited the same. Below same device identity in DHCPv4 option 125 sub-option 1, 2 and 3 which looks fine whereas IPv6 DHCPv6 option 17 sub-option 11, 12 and 13 not. Did tshark is not parse/dissect those fields in v6 vendor opts? ----------------------------------------------------- Option: (125) V-I Vendor-specific Information Length: 26 Enterprise: The Broadband Forum (3561) Length: 21 Option 125 Suboption: (1) DeviceManufacturerOUI Length: 6 DeviceManufacturerOUI: 00:00:3a Jan 13 '21 at 21:32
  • I did not get your update. Your question was about DHCP IPv6. Tshark shows the values correctly. "BDVER0" and "lan" and "vaaua9"
    – Hedgehog
    Jan 14 '21 at 15:43
  • @Hedgehog First of all thank you for the response. I am trying to configure device identity option for both v4 and v6 (IPv4 is successful). If you see my previous comment IPv4 DHCP option 125 shows "Suboption (1) DeviceManufacturerOUI Length: 6 DeviceManufacturerOUI: 00:00:3c" on tshark and I am expecting similar for IPv6 option 17 (like "Suboption (11) DeviceManufacturerOUI Length: 6 DeviceManufacturerOUI: 00:00:3c"), but sub-options shows as option (plz see tshark dump on question) and no description like v4. Is there any limitation on tshark to parse v6 vendor opts ? Jan 15 '21 at 0:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.