Community discussions

MikroTik App
 
totalvamp
just joined
Topic Author
Posts: 2
Joined: Tue Nov 23, 2021 7:38 pm

NTT DS-lite IPv4 over IPv6 issues

Tue Nov 23, 2021 8:31 pm

Hello,

I have to start of with saying I'm not good or adept at networking, I never really had any issues with my Mikrotik as a switch.

Since a few months I switched to 10G internet from NTT CROSS (Japan), at first this was fine, but the router they provided is junk.
I have many disconnects at random times, opening ports doesn't work at all, and the UI and options are very limited.

Now I wanted to switch the router functionality to the Mikrotik (CRS309-1G-8S+) and do away with the NTT one.

I've tried many of the guides online that do something similar for other providers, but none of the configs seem to work for me.

This was one of the most promising guide: https://www.rb-ug.jp/blog/1282.html

But according to my ISP the config should be delivered automatically.

This is basically what that page specifies to do (i changed some values to hide them)
/ipv6 dhcp-client
add add-default-route=yes interface=sfp-sfpplus1 pool-name=NTT request=prefix

/ipv6 address
add address=2405:6584:7c80:305::/56 comment="default gateway ipv6" from-pool=NTT interface=sfp-sfpplus1

/interface ipipv6
add clamp-tcp-mss=yes comment=v6_plus local-address=::/56 mtu=1460 name=ipipv6-v6plus remote-address=2405:6584:7c80:300:fab7:97ff:fe7c:1ed4

/ip address
add address="it says to add provider provided ip, but I have none" interface=ipipv6-v6plus

/ipv6 address
add address=::1 comment="default gateway ipv6" from-pool=NTT interface=bridge1

/ip firewall nat 
add action=masquerade chain=srcnat comment="NAT ipipv6" out-interface=ipipv6-tunnel1 
/ip firewall mangle 
add action=change-mss chain=forward comment="Clamp MSS to PMTU" new-mss=clamp-to-pmtu passthrough=yes protocol=tcp tcp-flags=syn
/ipv6 firewall mangle 
add action=change-mss chain=forward comment="Clamp MSS to PMTU" new-mss=clamp-to-pmtu passthrough=yes protocol=tcp tcp-flags=syn

/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge1 name=dhcp1
/ip dhcp-server network
add address=192.168.1.0/24 gateway=192.168.1.99

/ip route
add check-gateway=ping distance=1 gateway=dslite

/ipv6 route
add dst-address=::/0 gateway=sfp-sfpplus1 check-gateway=ping type=unicast distance=1 (type unicast doesnt work for me)

/ip dns
set allow-remote-requests=yes cache-size=50000KiB max-concurrent-queries=200 max-concurrent-tcp-sessions=40 servers=208.67.222.222,208.67.220.220,2001:a7ff:5f01::a,2001:a7ff:5f01:1::a
Does anyone have an idea what I could do to make this work?
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: NTT DS-lite IPv4 over IPv6 issues

Thu Nov 25, 2021 3:38 am

Best for you would be built-in support for DS-Lite in RouterOS, but it currently doesn't exist. The config should be sent by server as some dhcp option, so in theory you may get it from there with lease script. But for dhcpv6 it's supported only in not yet final RouterOS v7. Another downside is that there don't seem to be many examples, in fact I found none so far. You can log what you're getting (in not very readable form):
:log info $"options"
But at least it's not completely hopeless.
 
dogmatix
just joined
Posts: 6
Joined: Thu Nov 28, 2019 4:55 pm

Re: NTT DS-lite IPv4 over IPv6 issues

Thu Jun 09, 2022 3:13 pm

Were you able to successfully configure this? If so, could you share your configuration?
 
Omosa
just joined
Posts: 7
Joined: Mon Sep 20, 2021 11:45 am

Re: NTT DS-lite IPv4 over IPv6 issues

Wed Aug 31, 2022 11:50 am

Were you able to successfully configure this? If so, could you share your configuration?
Any updates?
 
gonyotuya
just joined
Posts: 2
Joined: Mon Feb 19, 2018 7:01 am

Re: NTT DS-lite IPv4 over IPv6 issues

Thu Sep 01, 2022 11:22 am

maby, I think that there is no choice but to do something with script control.
when I requested the introduction of RA, it was not installed immediately.
MAP-E may not be implemented.
 
urban69
just joined
Posts: 5
Joined: Tue Sep 12, 2017 4:50 pm

Re: NTT DS-lite IPv4 over IPv6 issues

Thu Sep 01, 2022 2:12 pm

I've got working ds-lite over pppoe, here's the example, you have to extract the cgnat address from dhcp packets (via port mirroring) or previous router.

```

/interface ipipv6
add disabled=yes !keepalive local-address=:: name=ipipv6-tunnel1 remote-address=<CGNAT ADDRESS>

/ipv6 dhcp-server
add address-pool=isp disabled=yes interface=bridge name=isp

/ipv6 settings
set accept-router-advertisements=yes

/ip address
add address=192.0.0.2 interface=ipipv6-tunnel1 network=192.0.0.1

/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=192.0.0.1 routing-table=main suppress-hw-offload=no

/ipv6 address
add address=:: eui-64=yes from-pool=isp interface=bridge

/ipv6 dhcp-client
add add-default-route=yes default-route-distance=2 interface=<ISP INTERFACE> pool-name=isp pool-prefix-length=56 rapid-commit=no request=prefix \
use-peer-dns=no
add interface=bridge request=address

/ipv6 firewall filter
add action=accept chain=forward
add action=accept chain=input
```
 
moojp
just joined
Posts: 2
Joined: Wed Sep 01, 2021 3:01 pm

Re: NTT DS-lite IPv4 over IPv6 issues

Thu Sep 01, 2022 4:34 pm

Hi!

Configurations you wrote is for "MAP-E".
Find "DS-Lite" example.

And you have to investigate AFTR address instead of BR address manually.

If your provider is using transix, you can find information on the web by search word "transix AFTR".
If not, the following article may be helpful.
https://gist.github.com/stkchp/4daea915 ... 55d51e568b

Who is online

Users browsing this forum: No registered users and 52 guests