Community discussions

MikroTik App
 
torikelly
just joined
Topic Author
Posts: 1
Joined: Thu Jul 21, 2022 4:21 pm

WAN Failover/Dual WAN and DDNS?

Thu Jul 21, 2022 4:25 pm

Hi There everyone!
Need some help :D

Suppose you are using DDNS to support your VOIP phone system. You have two ISPs and dual WAN.

What happens if one of the ISPs goes down? Is the DDNS linked to a specific interface, exclusively, with no way for Mikrotik to update it (other than scripting, I suppose) automatically in the event one WAN goes down? Or will Mikrotik update the DDNS to point to the remaining interface?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Thu Jul 21, 2022 10:55 pm

"My" phone system use dual carrier BGP, when one is down the same IP / DNS is reachable from the other side...
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19318
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 6:50 am

Not sure what you are saying, but one could conclude you like acronyms a pimped out rapper would use ;-PP.

More precisely are you saying your VOIP provider has some special characteristics,
OR
are you saying you are using the "BGP" functionality available on the router to setup traffic flow such that the desired behavior occurs??
OR
more likely something else...............
 
accarda
Member Candidate
Member Candidate
Posts: 208
Joined: Fri Apr 05, 2019 4:06 pm
Location: Italy

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 7:16 am

Is the DDNS linked to a specific interface, exclusively, with no way for Mikrotik to update it (other than scripting, I suppose) automatically in the event one WAN goes down? Or will Mikrotik update the DDNS to point to the remaining interface?
If you have enabled DDNS from IP -> Cloud, that IP entry is updated to the other interface that is up at the time automatically, given that you have setup your dual-WAN failover thing correctly and routed all traffic to the available interface.
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 8:16 am

If automatic failover between the WANs is in place and it affects also own traffic of the router, Mikrotik will update their own DDNS ("cloud") without scripting, but that the propagation time to the phones and peers will be slow - the TTL of the DDNS record is quite long and the phones/peers will not query again until it expires. And if the failed WAN doesn't go physically down, the DDNS update itself will take long as well as the system will not notice that something has happened - the IP attached to that WAN will still be up.

A virtual router somewhere in a datacenter with tunnels to your dual-WAN router is one possible solution; a VoIP "system" running directly in the datacenter may be an even better one.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 1:35 pm

Not sure what you are saying, but one could conclude you like acronyms a pimped out rapper would use ;-PP.

More precisely are you saying your VOIP provider has some special characteristics,
OR
are you saying you are using the "BGP" functionality available on the router to setup traffic flow such that the desired behavior occurs??
OR
more likely something else...............
Is "simple":
Two border gateway router that use Border Gateway Protocol.
Each router has it's own fiber connection, with different mainstream provider, each coming from different directions.
If for some reason one of the two BGP connections is not working, the IP of internal VoIP/SIP gateway is still reachable near immediately from other side.
The current calls or sessions are pratically uninterrupted, just experience some packet loss.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19318
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 3:07 pm

Okay put yourself in a lay persons shoes.......
What the heck is a border router. In my house I have one router accepting two or three wans depending.
Do you mean that I should use two routers one for each wan connection?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 3:18 pm

Do you mean that I should use two routers one for each wan connection?
If it was that essential for you to stay online, then yes, plus some additional measures too. No SPOF, everything at least doubled.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19318
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 3:22 pm

Haha, it seems the two of you are really having a private conversation in code...... SPOF //////////
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 3:26 pm

(SinglePointOfFailure)

No, also BGP with 2 carrier can work with one unique router, but obviously if you double anything but have only unique Border Router....

A Border Router (on my case) is a Router unreachable on any way from internet (= no firewall, no NAT, no queue, etc.), because use only private IP,
that act as access to "The Internet" where you can publish your IP. (and acts only as a conduit for packets)
Yes, on this case you do not have Public IP from internet like DHCP, PPPoE etc. , but directly you say to the world "This is my IP pool and I'm here"

When you have a (W+L)ISP to keep up, with businesses and families you have to guarantee the Internet to, you can't settle for a single connection to a mainstream.
Nor can you take two connections from the same provider.
Nor do you have to take two connections that come "from the same side", that is, although they are from different suppliers, the fiber cables pass close together in the path.
They have to be two suppliers, they have to be at least two fibers,
both have to have enough bandwidth if the other breaks,
and they don't have to go the same way, because if a fiber breaks due to accidents or work, they probably both break.

Obviously the tricks do not end there.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19318
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 3:28 pm

Still not following the logic, nor how I could apply, for example I have two providers, one cable, on fibre, two separate companies...........
I have dual wan failover and works fine, what is the impetus for one to change to whatever frankenstein you have created??
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 3:34 pm

Ok, if someone broke the fiber cable to your home, all stop regardless that everything in your house is working perfectly forever.

For prevent that, you require TWO fiber.

BUT if the fiber come from same cable, is obvious if for some reason is cutted, both stop working.

BUT if one fiber come from Halifax, and the other from Bedford, both must be broken for stop your service...
 
Sob
Forum Guru
Forum Guru
Posts: 9120
Joined: Mon Apr 20, 2009 9:11 pm

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 4:25 pm

You should also mention that all this BGP and dual carriers is not something you'd get at home, so @anav doesn't need to get excited for nothing. :)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Fri Jul 22, 2022 7:30 pm

Ah... yeah, I thought he just wanted to understand the concept... :P

But maintain same IP can be simulated, at that point, using VPN service.
When one link is down, the other line is used to estabilish VPN and keep same Public IP.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Wed Dec 07, 2022 2:41 pm

My problem is solved.
Yes, you did it, you managed to crete the topic, whait some time, spam ome gle tv & co. in the quoted text,
I hope God punish you.
 
Sob
Forum Guru
Forum Guru
Posts: 9120
Joined: Mon Apr 20, 2009 9:11 pm

Re: WAN Failover/Dual WAN and DDNS?

Wed Dec 07, 2022 2:57 pm

And also stole the original post (viewtopic.php?t=187532). Bad user! :lol:
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: WAN Failover/Dual WAN and DDNS?

Wed Dec 07, 2022 3:01 pm

And also stole the original post (viewtopic.php?t=187532). Bad user! :lol:
Che memoria!!! (What a memory!!!)
 
User avatar
spippan
Member
Member
Posts: 334
Joined: Wed Nov 12, 2014 1:00 pm
Location: Austria

Re: WAN Failover/Dual WAN and DDNS?

Thu Dec 08, 2022 6:31 pm

measure of thumb... the update occurs via the interface which your route to the WAN goes (aka "default route") or at which "cloud.mikrotik.com" and/or "cloud2.mikrotik.com" is reached.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2875
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: WAN Failover/Dual WAN and DDNS?

Thu Dec 08, 2022 7:17 pm

Spammers rely on the particular behaviour of most users ... accepting overquoting and NOT READING what is quoted.
spam.PNG
Topic closed, spammer blocked.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: Bing [Bot], nichky, Phaere, thetonmoyroy and 68 guests