Page 1 of 1

DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Tue Nov 26, 2019 1:10 pm
by bluenobbe
I'm trying to configure a Mikrotik router to use a DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334.

DS-Lite combines a native IPv6 connection with a IPIPv6 tunnel to a CGNAT gateway called AFTR (Address Family Transition Router). The router learns the remote tunnel endpoint through DHCP option 64, which contains a fully qualified domain name in the format defined by RFC 3315. The client needs to request this option in order to receive it. IPv4 traffic is sent through the IPv4-in-IPv6 tunnel unmodified: The remote endpoint (AFTR) operated by the ISP performs NAT.

It appears to me that RouterOS does not currently support DS-Lite. Is that correct? DS-Lite is a widely used IPv6 transition mechanism in Germany.

What I'm trying to figure out now is if this functionality can be implemented through scripting. Is there a way to get the DHCPv6 client to request option 64 and provide the resulting FQDN to a script, which could then set up the IPIPv6 tunnel accordingly?

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Tue Nov 26, 2019 5:28 pm
by mrz
We will try to add some functionality to read options in the script.

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Sun Mar 01, 2020 9:47 pm
by bluenobbe
When can I expect this functionality? Is it possible to get a example to set up a DSlite connection to ISP including the script?

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Mon Mar 02, 2020 11:54 am
by mrz
This feature was added to ROS v7beta

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Mon Mar 09, 2020 9:10 am
by bluenobbe
Can you discribe it in detail the options wich are now added in V7beta. Maybe with a example script.
Will be helpful.

Thanks in advance

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Sat Mar 28, 2020 4:22 pm
by bluenobbe
This feature was added to ROS v7beta
When can I expect a answer? Still open task.... Is someone else able to answer? regarding DS-Lite (dual stack lite)?

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Thu Oct 29, 2020 2:02 pm
by davidb11
Any information on how to configure this feature would be appreciated. I can't find anything!

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Mon Nov 02, 2020 1:12 pm
by mrz
You can get received attributes and their values by accessing "options" variable on script event.
Example on how to use script on DHCP event and access variables can be seen here:
https://wiki.mikrotik.com/wiki/Manual:I ... pt_example

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Mon Dec 28, 2020 5:45 pm
by urban69
Are there any examples for dslite configuration? I want to remove another router and move ds-lite to mikrotik.

Re: DS-Lite (dual stack lite) internet connection as defined in RFCs 6333 and 6334

Posted: Sat Jan 16, 2021 5:57 pm
by einichi
I would like to see this implemented natively at some point in the near future, along with more general improvements to IPv6.

It seems to be adopted in Germany and Japan at the moment, but I expect it will continue to gain traction as more ISPs begin to make their moves to an IPv6-first network.

In the mean-time, OP, I think we'd all be grateful if you shared your implementation, if you got around to doing it.

I'll likely be moving to a DS-lite ISP toward the end of this year, so if nothing is implemented by then, I'll share whatever I've hacked together.