Recursive Routing + Failover - Mikrotik RouterOS v7

  Рет қаралды 51,005

Wilmer Almazan / The Network Trip

Wilmer Almazan / The Network Trip

Күн бұрын

Пікірлер: 136
@SymbroIT
@SymbroIT Жыл бұрын
All working, i've watched many videos on how to set this up and was always confused but your video made it as clear as Mikrotik will allow it to be.
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Great to hear!
@wrnrt
@wrnrt 2 жыл бұрын
11:37 This setup assumes that you know your gateways. That is often not the case. You just want to check your 2 WAN-connections without having to set (changing) gateways.
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hi Werner, you have a great point! If we are using DHCP on the WAN, we can use a script to update the ISP's GW if that changes. It can be something like the following: Let's assume we have the ISP-1 connected on ether1: :local newgw [ip dhcp-client get [find interface="ether1"] gateway]; :local routegw [/ip route get [find comment="isp1"] gateway ]; :if ($newgw != $routegw) do={ /ip route set [find comment="isp1"] gateway=$newgw; } We would only need to add a comment ( "isp1") to the route with scope =10 and create a task in the system/schedules and execute that task every X amount of time. I hope this is going to help! Thank you
@alfabit6083
@alfabit6083 2 жыл бұрын
It was great helpful, I'm Brazilian and I didn't find any explanation on the sites in Brazil, thanks for you help me. Keep going. I'm sorry my English is not good.
@babatrlalan
@babatrlalan 2 жыл бұрын
Thanks, like. It works great in RouterOS 7.5, though that screen refresh bug is still there. Tip: you can use Netwatch to clear existing connections when the routes swap is done, to speed up the transition.
@ukaszignaciuk4290
@ukaszignaciuk4290 Жыл бұрын
Really great video, I followed Mikrotik's official guide, yet I couldn't configure failover properly. This time I did it in less than 20 minutes. Thank you a lot!
@giannisd961
@giannisd961 Жыл бұрын
I'm new to mikrotik I think their documentation isnt that clear for new users I mostly use KZbin to find solutions to my mt problems
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Great to hear!
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Thank you!
@TacticalCannedHam73
@TacticalCannedHam73 2 жыл бұрын
Thanks for the great video, not only explaining failover routing in RouterOS, but also highlighting the change in getting recursive routing to work properly in ROS7! 👍 I also hadn't previously noticed the new check-gateway options... definitely going to have to dig into those.
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Thank you Mitch! Glad it was useful
@sunilmahajan7
@sunilmahajan7 Жыл бұрын
With this setup Is it possible to have both ISP active together and double the speed of the internet? please guide...
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Hello! If you set the same distance, RouterOS will use ECMP and it will use both gateways.
@tekniqal2639
@tekniqal2639 2 жыл бұрын
Need a video showing how to do this with ISP dynamically assigned addresses.
@franklinmchana4955
@franklinmchana4955 7 ай бұрын
You just have to enable a dhcp-client on the interface connected to the isp, untick the add default box so that you can add the static route.
@duranopaulo
@duranopaulo 2 жыл бұрын
Great lesson. Thank you coming from the Philippines.
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Glad it was helpful!
@fabiojrsantos94
@fabiojrsantos94 Жыл бұрын
What a wonderful explanation, it cleared all the doubts I had, besides simplifying the whole process, I am very grateful. Have a wonderful day.
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Glad it was helpful!
@sheshokuku
@sheshokuku Жыл бұрын
Hi, Thanks you. I have a question, in the test part, when you drop all forward to ETH2, you off conexion from ISP-1 and active for failover ISP-2, but in the image ETH1 is for ISP-1 Conexion WAN and ETH2 is for ISP-2 conexion..is a mistake image ?
@davidinterian
@davidinterian 2 жыл бұрын
Thank you! Works great i found your video and you save me! now the office is running on two diferent fiber connections and having a starlinkas backup! that should give me peace of mind for ma upcoming vacations! again Thank you! you have a new subscriber!
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Great!!
@QuestMajor
@QuestMajor 8 ай бұрын
Is this seamless failover? If the primary WAN fails, will it still continue pinging when transitioning to Backup WAN?
@galvesribeiro
@galvesribeiro 2 жыл бұрын
HUGE THANK YOU! Spent a lot of time thinking that the target-scope should be equal to scope. That changed on the RouterOS v7. Thank you very much! :)
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Glad it helped!
@galvesribeiro
@galvesribeiro 2 жыл бұрын
@@TheNetworkTrip indeed it did. Do you have any guidance on IKEV client-to-site VPN without L2TP? Thanks!
@igorzatti
@igorzatti 2 жыл бұрын
Great video, explaining about how to router os choose the routes and emphasizing about scope helps me a lot, thanks
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Great to hear!
@eheroi
@eheroi 7 ай бұрын
may i ask . in a home network with 2 adsl modems what would be the external hosts ? thank you
@dhiaahmed5420
@dhiaahmed5420 Жыл бұрын
This is the best tutorial I've seen 👏 please make one about PCC load balancing on Router OS 7
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Thank you! PCC coming soon
@diegozupo-btcaas3009
@diegozupo-btcaas3009 Жыл бұрын
Hey there, how's it going? I really appreciate your videos. Thank you so much for spending your time with us and teaching us. You are amazing! Grats 🎉
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Thank you. I’m glad you liked my videos
@RioSif
@RioSif Жыл бұрын
Great guide! Thanks! It works great for me on ROS 7.8. What if I don't have a standard GW for one of the ISPs? What should I add to the route? For example, I have Starlink on pass-through mode and I set a DHCP client for the ISP1 interface. How can I set the gateway from the DHCP client as a default route? Thanks in advance!
@leo.quadrado7719
@leo.quadrado7719 2 жыл бұрын
Hi! Thanks! I was only able to do Recursive failover in this new version 7 with your explanation. I updated my equipment to 7.5 and I was not able to do it. In version 6.49 the default route I kept with the same scope as the monitoring route Ex:10 and it worked, now in the new version the scope should be bigger. Thanks!
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
I’m glad to hear that, thanks
@alimibrahem8120
@alimibrahem8120 Жыл бұрын
Mr.Wilmer From your experiense in Mikrotik can we merge two internet speed Connection...? i mean if i have ether-1=8M ether-2=8M can i merge both of them so i get 16 M..?
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Hello, We can load balance, not merge. Bonding does not work for Internet connections.
@MrChView
@MrChView Жыл бұрын
Thank you for your great explanation. what if we have a third or more wan... should we set target scope 12 for third wan?
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Hello, thank you! You can continue using 11.
@MrChView
@MrChView Жыл бұрын
@@TheNetworkTrip thank you. btw, I have a problem pinging my second router (priority 2) , I get "Request timed out." but loadbalancing works well. Just I can't ping or open my second router web.
@franklinmchana4955
@franklinmchana4955 7 ай бұрын
​@@MrChViewhi how did you solve this?
@MrChView
@MrChView 7 ай бұрын
@@franklinmchana4955 I did not define a rule in mangle for my second router.
@franklinmchana4955
@franklinmchana4955 7 ай бұрын
@@MrChView can you share the full setup
@jmc504
@jmc504 11 ай бұрын
Scope and target scope policy or rule same as earlier version than osv7?
@TheNetworkTrip
@TheNetworkTrip 10 ай бұрын
There are some slight hangers as I explained in the video
@marianpopov
@marianpopov 2 жыл бұрын
Hello, is there a way not to wait 20 seconds to lose 2 pings ? I need something faster ?
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hello Marian, We can't modify that value on the route itself but you can use Netwatch instead (tools/ netwatch )
@SipCompany
@SipCompany Жыл бұрын
My compliments ! Very clear and simple explanation.
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Glad it was helpful!
@blueheavens3675
@blueheavens3675 Жыл бұрын
Can i use target scope 12 because everytime i use 11 route is unknown. ROS 7.9
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Hello! Yes, the idea is having the target scope with a higher value than the scope on the second entry.
@muhamadkhalaf6556
@muhamadkhalaf6556 2 жыл бұрын
Thank you so on this way no need i think to add dns because it already added on router for each ISP is it ok ? or i should add dns on ip/dns add dns
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Hello!! DNS servers are still required. The ones in the routes are for monitoring the Internet access only (they can be any reachable IP on Internet)
@zarifferdous9652
@zarifferdous9652 2 ай бұрын
Thank you so much for the elaborate explanation. You along with The Network Berg are the best!!! Can you also explain how to do recursive routing with policy based routing? I have successfully been able to do this following your tutorial, also the policy based routing watching your video. However I want to combine the 2. Please help! Thanks a lot and stay blessed!
@youngrp
@youngrp 4 ай бұрын
Great! Just a tip: there is no need to monitor ISP 2
@TheNetworkTrip
@TheNetworkTrip 4 ай бұрын
@@youngrp Hello! That’s right
@julianohofschneider6260
@julianohofschneider6260 Жыл бұрын
Great explanation, thank you!!! Is it possible to check the gateway using bfd instead of ping, in the recursive route?
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Hello! Thanks. We can’t use BFD on static routes yet.
@MrRobotDevelop
@MrRobotDevelop Жыл бұрын
Excellent explanation!!! Nice work, thank you so much
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Thank you
@carlb641
@carlb641 2 жыл бұрын
I followed your scope/target scope settings but does not seem to reach the gateway. The immediate gateway status is just unknown. Does the scope and target scope change if I have more than 2 WANs?
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hello Carl, The settings are similar for 2+ Wans
3 ай бұрын
Does the failover work on PPPoE (main) to static IP (backup) connections?
@TheNetworkTrip
@TheNetworkTrip 3 ай бұрын
Hello! Yes, it's possible to use the PPPoE as the main default route, and failover to another gateway with static IP
@crmeae
@crmeae 2 жыл бұрын
Great video Wilmer, once again thanks for your generosity, this confirm that i do not make a misstake on buying your curses. Regards
@TheNetworkBerg
@TheNetworkBerg 2 жыл бұрын
Very cool videos on your channel :)!
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Thanks so much! I checked your channel and you offering great content! Congrats
@AlaminHossain-c4b
@AlaminHossain-c4b 2 ай бұрын
Nice video. If I want to set up failover and load balancing like this, what do I need to do?
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
I’ll explain that setup in one upcoming video.
@bhartendulal8645
@bhartendulal8645 10 ай бұрын
Hi , Thank you for the video,, If there is 3rd link then what will the scope and target scope, Also if we for each WAN link there are different lan IP pool , then how will that recursive?
@erapsky2416
@erapsky2416 9 ай бұрын
sir in the last part of the video, in firewall rule you drop the ether2 which is the ISP2 to test then the ISP1 should enable to connect.. but in you the ISP2 will enable even you drop the connection.. correct me if i'm wrong sir.
@MindSparqTrivia
@MindSparqTrivia 2 жыл бұрын
How bout setting up failover based on latency sir? Lets say my isp has high latency/ping or is slow,for example my isp1 has 50ms or higher ping and need to route traffic to my isp2. Thank you very much sir
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hi Michael, that would be cool, we can use scripting or the API to gather stats, and then execute a script to switch the order of preference. I will try to create something and share it soon.
@MindSparqTrivia
@MindSparqTrivia 2 жыл бұрын
@@TheNetworkTrip Thank you very much sir. . Need it also on my network sir. Much appreciated
@ulisescamacho9273
@ulisescamacho9273 2 жыл бұрын
Gracias Wilmer, ahora podré usar mi RB5009 como balanceador
@Rouly88
@Rouly88 2 жыл бұрын
Please tell me which DNS are you using on the router? Can we still use 1.0.0.1 or 4.2.2.2 as /ip dns?
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hi, I would suggest using a different IP than the ones used for monitoring the ISPs since we are forcing that traffic to use that ISP only
@Rouly88
@Rouly88 2 жыл бұрын
@@TheNetworkTrip yes. Get it
@rudolphdevilliers
@rudolphdevilliers 4 ай бұрын
Thank you for an excellent video! What is the setup for the rest of the router?
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Hello! That depends on your actual configuration. I have more videos about routing, switching, and security. You can pick the technologies/protocols you require in your setup.
@fernandoturbo382
@fernandoturbo382 Жыл бұрын
TOP, me salvou aqui. Ainda nao tinha visto no Router OS 7
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Wow! Happy to hear that!
@snafu7777
@snafu7777 10 ай бұрын
great content. do you have a video which combines loadbalancing with this setup?
@basilio100
@basilio100 9 ай бұрын
excellent. works like a charm. How to deal in situation if IP of Wan interface is dynamic and potentially my provider has dynamic gateway IP, so it can change?
@EichraTV
@EichraTV 2 жыл бұрын
Hi sir! Im studying this vid,. in this setup is there anything to config in mangle rules? I just want to implement this setup with my rb5009 running dual isp with pppoe/hs same interface can u give m idea how can i config this one... tia sir
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hi Eichra, All the process will look the same, the only difference will be that instead of using and IP on the gateway value, you can specify the pppoe-interface-name. Let's say your ISP has the interface pppoe-isp1, then, your route will have gateway=pppoe-isp1
@franklinmchana4955
@franklinmchana4955 7 ай бұрын
Hi i love what you do. how do i reach the router using winbox from either Ip addresses, from outside the LAN supposing both isps assigned public Ip addresses.
@forex-chart-analysis-daily
@forex-chart-analysis-daily 2 жыл бұрын
sir hotspot user connected but can't able to access internet when i go to hotspot host here i remove user mac address then again user can access internet soloution please?
@manuelvera9977
@manuelvera9977 Жыл бұрын
Thanks for sharing this, very helpful for me
@NestorCastellar
@NestorCastellar 4 ай бұрын
muchas gracias por el video ,con ganas de aprender ingles tambien.
@TheNetworkTrip
@TheNetworkTrip 3 ай бұрын
Excelente!
@waylon2002my
@waylon2002my 2 жыл бұрын
How do we check host to monitor ISP IP?
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hello Tin, You can pick any public IP, the idea is to check a host that is external to your network.
@masteknisi_
@masteknisi_ 11 ай бұрын
many thanks mister. IT Support Freelance from indonesia,
@TheNetworkTrip
@TheNetworkTrip 11 ай бұрын
Thank you 👍🏻
@laurenttaieb65
@laurenttaieb65 Жыл бұрын
Hello Wilmer, this is a pretty great training. can we add a second set of addresses to be monitored in case the IP we're using becomes unreachable before we switch to the second ISP interface ?. Many thanks
@laurenttaieb65
@laurenttaieb65 Жыл бұрын
but I don't why, it doesn't work for my network for some reasons. The secondary route is showing in blue in the route list window and then in red after 30sec. status messages are : enabled, invalid, unreachable, static, HW offload. The wierd thing is that the traffic doesn't reroute through the main connection and I have to disable the 2nd WAN port to make it work again. Happy to get some support if all possible. Thanks
@laurenttaieb65
@laurenttaieb65 Жыл бұрын
I found what the issue is.. my backup connection is connected to a Mikrotik 5G router (Chateau). When the routeur cannot join the Internet itself (not the IP we're using for the recursive test), the configuration doesn't work. If someone has a plan for the plan :)
@jeytis72
@jeytis72 2 жыл бұрын
Could you please supply the EVE-ng file of your project? It could help us to better figure it up. Thanks.
@LuisRojas-lsrojas
@LuisRojas-lsrojas Жыл бұрын
Thank you so much , greetings from Chile
@arshad794
@arshad794 2 жыл бұрын
can we use Recursive Routing + Failover with load balancing setting, if yes then how setup mangle rule for load balancing with recursive routing. can we use both load balance + recursive routing. Plz help me or send me full script, Thanks & Regards
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Hi, thanks for your comment We can use failover & recursive routing in combination with load balancing (PCC, PBR). I will create a video with PCC + Failover + Recursive Routing soon!
@arshad794
@arshad794 2 жыл бұрын
@@TheNetworkTrip Thanks Sir, I will wait hope fully you will upload soon
@markethan9075
@markethan9075 2 жыл бұрын
@@TheNetworkTrip I will wait also hope fully you will upload soon
@christosaivazoglou5860
@christosaivazoglou5860 2 жыл бұрын
@@TheNetworkTrip Add an extra step to add port forwording and then we are totally super with our mentor, best Mikrotik guru !!
@paulturner9444
@paulturner9444 2 жыл бұрын
Great video! Any chance you've already made this video when load balancing is present?
@khalilelzein6916
@khalilelzein6916 7 ай бұрын
Hello , And always following You , Great explanations. Have a question Whats the best way to load balance two PPPOE same gateway and use BGP Need to be able to stream iptv on my tv
@tech-dips
@tech-dips Жыл бұрын
Thank you for a great tutorial and and explanation!
@randomxspots
@randomxspots 2 жыл бұрын
Thank you so much for this tutorial. A big help for my network.
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Glad to hear that!
@glaucovasconcelosjunior1905
@glaucovasconcelosjunior1905 2 жыл бұрын
Excelente vídeo! First video about this.
@omnitecbh
@omnitecbh Жыл бұрын
Thank you so much Sir! we saddly have poor explanations across the web about OS7. Can you help me with another? how to clean the Conntrack when Gateway changes? I do have VOIP services and, every time the gateway changes, I have some problems with authentication, so I have to clean the conntrack to force new authentication at provider. Thank You SO MUCH!
@bluehairminerboy
@bluehairminerboy Жыл бұрын
Thank you very much, very helpful!
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
You're welcome!
@willgaerlan
@willgaerlan 2 жыл бұрын
Great video sir. if I intend to combine 3 isps, for example three 500mb connections combined for 1.5gb availability on the router, can I assign distance of 1 to all the connections? if 1 connection breaks down, 2 will still work to provide 1gb availability for the system. I intend to use the recursive routing provided above but use a distance of 1 for all providers. will this work sir? there are pcc settings in the mangle to handle the traffic.
@Kuya_Dodong
@Kuya_Dodong 5 ай бұрын
I hope that there's an option to redirect browsing to wan2 and games to wan1 with this setup :)
@YordyEscalona-w8w
@YordyEscalona-w8w 5 ай бұрын
Gracias amigo me ayudaste un montón
@gigatt3079
@gigatt3079 2 жыл бұрын
Thank you very much for this. All working great in my site.
@Lucas-av7
@Lucas-av7 2 ай бұрын
Great, thank you!
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
You are welcome!
@nicoladellino8124
@nicoladellino8124 Жыл бұрын
Muchas gracias por el video.
@TheNetworkTrip
@TheNetworkTrip Жыл бұрын
Gracias
@Wooldorf
@Wooldorf 2 жыл бұрын
Great job, thank you very much !!
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Glad you liked it!
@nosharwangujar1323
@nosharwangujar1323 2 жыл бұрын
brother kindly make policy base routing with recursive routing
@antonioricardo622
@antonioricardo622 2 жыл бұрын
Excelente . Gratitude
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Thank you Antonio!
@deck1
@deck1 5 ай бұрын
thank you, again😁
@YaHasEntradoAMiCanal
@YaHasEntradoAMiCanal Жыл бұрын
excelent 👏👏👏👏👏 thx
@YONATHANCOVA
@YONATHANCOVA Жыл бұрын
So good
@Rouly88
@Rouly88 2 жыл бұрын
Well, tkx again
@TheNetworkTrip
@TheNetworkTrip 2 жыл бұрын
Thank you Bory!!
@DiegoBarrios
@DiegoBarrios Жыл бұрын
Excelent! Thank You!
Port Knocking Step by Step - Mikrotik RouterOS v6 & 7
14:13
Wilmer Almazan / The Network Trip
Рет қаралды 7 М.
Policy Based Routing + Failover - RouterOS v7
31:09
Wilmer Almazan / The Network Trip
Рет қаралды 30 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Full MikroTik MTCRE - Recursive Routing (Easy Automatic failover)
14:57
The Network Berg
Рет қаралды 63 М.
How to protect and restrict VLAN traffic on MikroTik.
19:54
The Network Berg
Рет қаралды 28 М.
Mikrotik VLANs - CRS1xx & CRS2xx - Mikrotik Tutorial
21:53
Wilmer Almazan / The Network Trip
Рет қаралды 35 М.
VXLAN Mikrotik - RouterOS v7
16:36
Wilmer Almazan / The Network Trip
Рет қаралды 17 М.
Block DNS Flood Attacks on Mikrotik - Live Demo Included!
14:38
Wilmer Almazan / The Network Trip
Рет қаралды 4,9 М.
VLANs in OpenWrt 21
28:27
OneMarcFifty
Рет қаралды 187 М.
How Data moves through the Internet - Networking Fundamentals
26:47
Practical Networking
Рет қаралды 380 М.
Full MikroTik MTCRE - Policy Based Routing (Mangles) 😎 (Episode 5)
18:54
MIKROTIK LOAD BALANCED ROUTER OS 7 4 + FAILOVER+RECURSIVE ROUTES
26:51
MIKROTIK SO, DO IT YOURSELF!
Рет қаралды 17 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН