Community discussions

MikroTik App
 
FIPTech
Long time Member
Long time Member
Topic Author
Posts: 558
Joined: Tue Dec 22, 2009 1:53 am

How to get the result of a DHCPv6 client request for an option ?

Sun Mar 10, 2024 12:36 am

I would need to get the result of a DHCPv6 client request for option 94 (MAP-E container).

Is there a way to get that in a script ?

I'm able to successfully request this option through Option 6, and i get a correct answer from the server.
 
rplant
Member
Member
Posts: 313
Joined: Fri Sep 29, 2017 11:42 am

Re: How to get the result of a DHCPv6 client request for an option ?

Sun Mar 10, 2024 12:50 am

in https://wiki.mikrotik.com/wiki/Manual:IPv6/DHCP_Client it mentions an options array as being one of the variables supplied to the script.

This looks like it might actually be present but using it will take some effort/ may not be doable.
It appears to mostly be binary.

my script
/log info $options
 
FIPTech
Long time Member
Long time Member
Topic Author
Posts: 558
Joined: Tue Dec 22, 2009 1:53 am

Re: How to get the result of a DHCPv6 client request for an option ?

Sun Mar 10, 2024 12:03 pm

Thanks i'm going to try that. I was able to save the array to a file and compare it with a Wireshark capture. The data seems correct.

But probably not so easy to parse and manipulate to get the MAP-E tunnel settings because there is some bit level handling to do.

Who is online

Users browsing this forum: Google [Bot], sakthivelj, seriosha and 28 guests