Community discussions

MikroTik App
 
fernandomm
just joined
Topic Author
Posts: 11
Joined: Thu Nov 05, 2015 1:11 pm

IPv6 WAN links fail over

Wed May 04, 2016 7:08 pm

Does anyone here were able to implement IPv6 failover of WAN links?

With IPv4 it's fairly easy ( http://wiki.mikrotik.com/wiki/Advanced_ ... _Scripting ) since nothing changes at the internal network, only at the router.

I was thinking about making a script that will ping different IPv6 addresses and change the advertise flag of the pools from each WAN link to yes or no depending on their availability.

I'm not sure if I'm making this more complicated that it is or if the workstations/devices in my local network will be able to change the IPv6/router quickly but that's the only solution that I thought so far.

I couldn't find any information about this, so sharing your ideas/setup would be nice :)
 
samsung172
Forum Guru
Forum Guru
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: IPv6 WAN links fail over

Thu May 05, 2016 2:58 pm

Like in ipv4 - add 2 default routes , and have different distance to them. also add a check gateway.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: IPv6 WAN links fail over

Thu May 05, 2016 10:07 pm

Like in ipv4 - add 2 default routes , and have different distance to them. also add a check gateway.
That's not viable in IPv6 because there's no NAT functionality for IPv6 in ROS.
If they did at least offer prefix translation, then you could use NAT-prefix-translation (I forget which NAT acronym it is) to masquerade the source when going out the backup ISP...

You could have multiple concurrent prefixes - one from each ISP, and use policy routing to force each prefix over the correct ISP. You'd need a really short lifetime in the RA messages so that hosts would drop the bad prefix very quickly if the primary fails, though.

Ideally, the world would be running on MPTCP and SCTP and thus be able to benefit from both paths on their own without fancy involvement from the router.
 
Trema
newbie
Posts: 37
Joined: Tue May 20, 2014 10:21 am
Location: The Netherlands

Re: IPv6 WAN links fail over

Tue May 24, 2016 1:26 pm

There is no technical difference between regular IPv6 addresses and Unique Local Addresses (RFC 4193 https://tools.ietf.org/html/rfc4193). You can use both at the same time on your LAN without any problem. To prevent ULA's from leaking to the outside world, the RFC instructs to block them at the site border:
Site border routers should respond with the appropriate ICMPv6 Destination Unreachable message to inform the source that the packet was not forwarded. [ICMPV6]. This feedback is important to avoid transport protocol timeouts.
In RouterOS this is achieved by adding this line to the routing table:
/ipv6 route
add comment="Keep ULA's inside" distance=1 dst-address=fc00::/7 \
    type=unreachable
Wouldn't it be feasible to take the same approach when it comes to IPv6 WAN failover? Just advertise and use the prefixes from both ISP's on the LAN, use policy routing to force each prefix over the correct ISP and block at the border router the prefix that shouldn't be used at that time? It probably takes some scripting to detect the failover situation and to subsequently change the corresponding rules in the routing table.
I haven't tested this setup yet, but I suppose it could work this way without too much overhead, at least if your site isn't too big. I think I'll give it a try later this or next week.
 
wimpy
just joined
Posts: 16
Joined: Thu Jan 07, 2016 7:23 am

Re: IPv6 WAN links fail over

Tue May 24, 2016 2:09 pm

Unfortunately, policy routing on IPv6 is not supported by the RouterOS at the moment.
 
Trema
newbie
Posts: 37
Joined: Tue May 20, 2014 10:21 am
Location: The Netherlands

Re: IPv6 WAN links fail over

Tue May 24, 2016 2:43 pm

Unfortunately, policy routing on IPv6 is not supported by the RouterOS at the moment.
Grmpf, I didn't realize that. How unfortunate!
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: IPv6 WAN links fail over

Thu May 26, 2016 6:50 pm

Unfortunately, policy routing on IPv6 is not supported by the RouterOS at the moment.
Grmpf, I didn't realize that. How unfortunate!
Yeah - I hadn't noticed that either, but I'm not surprised. Basic functionality in IPv6 is there for ROS, but most of the "fancy" behaviors we're used to doing in v4 just aren't available in v6 - some of this is due to the differences in v6, but many things just feel "under-implemented" at the moment.

I'm really anticipating ROSv7 and hoping that a lot of functionality is added in v6.
 
woro
Member Candidate
Member Candidate
Posts: 104
Joined: Sun May 24, 2015 12:47 am

Re: IPv6 WAN links fail over

Fri Jun 08, 2018 12:30 pm

I guess nothing changed with that yet?
I'm looking into solving the same issue.
 
Trema
newbie
Posts: 37
Joined: Tue May 20, 2014 10:21 am
Location: The Netherlands

Re: IPv6 WAN links fail over

Fri Jun 08, 2018 1:18 pm

I guess nothing changed with that yet?
Nope, nothing yet. See also this topic ("My IPv6 Triage List for ROS") with a wishlist of many more IPv6 enhancements in RouterOS.
 
samsung172
Forum Guru
Forum Guru
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: IPv6 WAN links fail over

Fri Jun 08, 2018 11:09 pm

Like in ipv4 - add 2 default routes , and have different distance to them. also add a check gateway.
That's not viable in IPv6 because there's no NAT functionality for IPv6 in ROS.
If they did at least offer prefix translation, then you could use NAT-prefix-translation (I forget which NAT acronym it is) to masquerade the source when going out the backup ISP...

You could have multiple concurrent prefixes - one from each ISP, and use policy routing to force each prefix over the correct ISP. You'd need a really short lifetime in the RA messages so that hosts would drop the bad prefix very quickly if the primary fails, though.

Ideally, the world would be running on MPTCP and SCTP and thus be able to benefit from both paths on their own without fancy involvement from the router.
eh........ i did not talk about nagt here..... just 2 default gateways with differ in distance at route..... Thats possible in ipv6.... ? :D
 
pfturner
just joined
Posts: 18
Joined: Fri Jun 09, 2023 4:31 pm

Re: IPv6 WAN links fail over

Wed Mar 27, 2024 10:26 pm

Any updates on being able to set up WAN failover in IPV6? Thanks.

Who is online

Users browsing this forum: khsin0127 and 93 guests