How to configure two sub-options with same code in .conf

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

How to configure two sub-options with same code in .conf

Songtao Li
Hello.
I encapsulate two IPv6 address into DHCPv6 option 17 (D6O_VENDOR_OPTS) with two sub-options which have the same code=1 for them.
Here is the two sub-options in D6O_VENDOR_OPTS which I get from Wirshark:
        option
            Option code: 1
            Option length: 16
            Option data: fd12ac8b3f43006a98c5dbfffeba918b
        option
            Option code: 1
            Option length: 16
            Option data: 20010db80001000d0000000000001000
 
And I try to get the two IPs from dhclient. I configure the dhclient.conf to define the vendor-encapsulated-options for the IP.
Here is my definition in dhclient.conf:
       option space iplist code width 2 length width 2;
       option iplist.ctip code 1 = ip6-address;
       option vsio.iplist code 43793 = encapsulate iplist;
 
My problem is I alway get only one IP from dhclient when I using "require iplist.ctip;". Could anyone tell me how to configure dhclient to get both of the two IPs?
 
Thank you.
 
Songtao

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

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

Re: How to configure two sub-options with same code in .conf

Niall O'Reilly
On 18 Jun 2020, at 11:09, Songtao Li wrote:

> Could anyone tell me how to configure dhclient to get both of the two
> IPs?

I’m guessing, but here’s something to try while waiting for an
expert answer.

Option length: 32
Option data:
fd12ac8b3f43006a98c5dbfffeba918b20010db80001000d0000000000001000

Niall

_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

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