Full MikroTik MTCRE - Recursive Routing (Easy Automatic failover)

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 116

  • @TheNetworkBerg
    @TheNetworkBerg  2 роки тому +2

    Reference Material:
    wiki.mikrotik.com/wiki/Manual:IP/Route
    help.mikrotik.com/docs/pages/viewpage.action?pageId=26476608#:~:text=Recursive%20routing%20occurs%20when%20a,different%20values%20of%20routing%2Dmark.

    • @shalak001
      @shalak001 Рік тому

      Hi! Great wideo! However, I'm trying to understand two things - the official tutorial adds 4 default routes, you're only adding 2 - why? Also - the tutorial adds mangling and routing tables - what's up with that?

    • @crash939burn
      @crash939burn 6 місяців тому

      hi,excellent video! ive done this before & it works great. But how do i create the exact same but with one issue being that the one isp router sends a dhcp ip and the 2nd isp router can be dhcp ip or static? Problem is that i cannot manual set isp 1 ip as it changes each time

  • @aonekris
    @aonekris 3 місяці тому +1

    Really appreciate the work that you are doing

  • @mostafavii
    @mostafavii 8 місяців тому

    The best video on the internet for recursive routing details ;)

  • @Anavllama
    @Anavllama 2 роки тому +6

    In a failover scenario (vice load balancing) its more common to just do recursive on the first route. If the first one is not available then the second route will be used regardless.
    In this case often folks make two recursive routes for the primary in the case where we go one step further, what if one of the DNS services is down.

    • @alex.username
      @alex.username 3 місяці тому

      Having recursive routes for the secondary WAN makes sense for monitoring. If the backup link loses internet connection, you'll wanna know. You can script e-mail notifications, for instance.

  • @ACannaos
    @ACannaos 2 роки тому +8

    Hi, can you adapt this tutorial using ROS 7 and also using lte as one of the connection ? By the way thank you for your remarkable work !

  • @royalsingh
    @royalsingh Рік тому +1

    Beautifully explained, loved it.

  • @wiebehageman3864
    @wiebehageman3864 2 роки тому +3

    Thank you very much for all the good and nice video's. It is an excellent refresh of the MT courses (MTCRE,MCTINE). Not sure of it is in scope but could you do one with PIM SM together with ospf/bgp routing ? Very populair item with all IPTV setups knowadays. Thx !!!

  • @javiervaldeschavez4805
    @javiervaldeschavez4805 2 роки тому +1

    Magic! Thanks a lot brother, I this helped me a lot. Great demonstration!

  • @nielsvdeng6276
    @nielsvdeng6276 2 роки тому +6

    This is very informative. I use this mechanism for a while now. In combination with netwatch it is even more powerfull. But.. with Ros 7.x it doesn't seem to work this way. Maybe you can make a video of this based on ros 7.x. thanx. I like your video's a lot.

    • @brandonprice9986
      @brandonprice9986 2 роки тому

      I second the request for a ROS 7.x update! Great video

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +1

      I will see if I can also get a RoSv7 video in conjunction with this one. I want to do RoSv7 separately and when there is a long-term release out for it since MikroTik is still making MANY tuning changes with each stable release.
      This guide on the new help wiki is based off of v7 if you want to give it a read(Same reference I pasted in the pinned comment)
      help.mikrotik.com/docs/pages/viewpage.action?pageId=26476608#:~:text=Recursive%20routing%20occurs%20when%20a,different%20values%20of%20routing%2Dmark

    • @DimitriPappas
      @DimitriPappas 2 роки тому +1

      @@TheNetworkBerg Small favour, please show a traceroute not just a ping in the next video, just so we can see the path taken (whether the recursive gateway shows up in the traceroute or if it shows the actual gateway)

    • @Kiwel_Eduardo
      @Kiwel_Eduardo 2 роки тому +1

      For ros 7.x. just change Target Scope to "11" on each default route.

  • @romanmikhalev3518
    @romanmikhalev3518 2 роки тому +1

    You are the best! Thank you!

  • @gammerhub5039
    @gammerhub5039 2 роки тому +1

    Very informative. Thank you!

  • @aaronglowacki5992
    @aaronglowacki5992 2 роки тому +1

    This channel rocks!

  • @randominternet5586
    @randominternet5586 2 роки тому

    Wahoo - this is exactly something I want to do. I'm on RoS 7.X (because the new device shipped with that).

    • @gilbertpinamang1650
      @gilbertpinamang1650 2 роки тому

      If that is gonna be a headache for you it will be better if you downgrade to another version of routeros

  • @PinoyTechTutorials
    @PinoyTechTutorials 2 роки тому +1

    Freakin awesome! thanks alot sir!

  • @jasonvanwyngaard4387
    @jasonvanwyngaard4387 2 роки тому +1

    another great video, thank you.

  • @franciscopena1140
    @franciscopena1140 2 роки тому

    Thanks, it helped me a lot

  •  2 роки тому

    Fantastic explanation, thanks man.

  • @ratnakarkoli5609
    @ratnakarkoli5609 3 місяці тому

    Thanks for the wonderful tutorials. This is working with my ROS 6.49.15, with gateway as IP. We have isp with PPPoe where the gateway changes, in such case it might fail, as the gateway is the PPPoE interface. How do we work around with this

  • @atroxes
    @atroxes 2 роки тому

    Great video and explanation!

  • @gigatt3079
    @gigatt3079 2 роки тому +4

    Hey Berg, nice video and explanation. Do you mind using RouterOS v7.x, in this newer versions, you need to change target scope also, in order for this to continue working. Otherwise, a horrible headache will appear.

    • @wyrddoke
      @wyrddoke 2 роки тому +1

      Agreed, good video,. To add a bit more explanation - v7 requires scope to be less than (v6 allowed equal to as well) target scope in order to do the next hop lookup. So, when you want to resolve the recursive default route, you need to make sure your target scope is higher than the scope (default is 10 for connected routes) in order for the next hop interface to be used in that lookup. So, increasing the target scope to a value higher than 10 will make the recursive route possible. This will also result in more routes used as recursive routes.
      Decreasing the Scope value will also work and make the route more likely to be used as the recursive route.
      by the way Berg, stop with the American rout and pronounce it properly - root

  • @talharafique8913
    @talharafique8913 6 місяців тому

    great information and technique, well is there a way we can make logs when WAN1 goes down and goes Up ? so to check later on and to diagnose??

  • @adriano_saraiva
    @adriano_saraiva Рік тому

    Thanks for share!

  • @drumaddict89
    @drumaddict89 2 роки тому +1

    thank you. so. much!

  • @survivingnetworkingandit2084
    @survivingnetworkingandit2084 2 роки тому

    Interesting. Thanks for this.

  • @latostime9849
    @latostime9849 2 роки тому +2

    But how to apply this if the ISP1 is just giving intermittent connection?
    The link is up, Internet is online, it just that intermittent with ping reply and timed out, not a total link failure.
    Can this also do the trick ?
    I understand that this setup is only for ISP1 with link / interface down or offline.

  • @matthewmanuel1003
    @matthewmanuel1003 2 роки тому

    I've been watching so much about your mikrotik lessons and i learned alot from it i wanna say thank you for the effort that you put in teaching these videos but can i ask if you could make a video about gaming prioritization?

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      Hi Matthew, thank you for watching the channel. What type of prioritization are you interested in? Would you like to know how to setup queues to dedicate bandwidth to certain games so that they take priority over all other traffic?

    • @matthewmanuel1003
      @matthewmanuel1003 2 роки тому

      @@TheNetworkBerg i wanna know more about fasttrack and simple queue setup or maybe separate gaming and browsing

    • @travelnengineer
      @travelnengineer 2 роки тому

      @@TheNetworkBerg i saw a lesson about these gaming priority in my language but its too vague on explaining things just a step by step, would like learn on how we separate bandwidths for gaming and streaming and achieve a steady ping when gaming tnx 👍👍👍

  • @comayo07
    @comayo07 2 роки тому

    thank you

  • @safiullah5953
    @safiullah5953 Рік тому

    Sir i want some infromation please make video in multiple recursive if WAN1 fail to shift WAN2 automatically if there is no internet also in WAN2 then all traffic should be move to WAN3
    please make video on this setting
    thank you

  • @itzizag2280
    @itzizag2280 2 роки тому +1

    Thanks A LOT LOT LOT

  • @kirksteinklauber260
    @kirksteinklauber260 Рік тому +1

    Excellent video but I am having problems trying to replicate this configuration when the default route is given to me via DHCP server. My fear is if I force to put static route ignoring the DHCP Server's input the ISP changes the IP pool and default gateway my remote site will be isolated. I was thinking more to have the DHCP to assign the default gateway and increase the distance and apply this configuration but the routing table displays unknown immediate gateway

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому +1

      Are you using v7? If yes, recursive routes operate a lot differently, for dynamic connections that uses stuff like DHCP or PPPoE I would recommend rather implementing PCC (Mikrotik made a video on this recently) It's more used for load balance, but can function for failover as well. And works best with a dynamic solution where IPs may change.

    • @kirksteinklauber260
      @kirksteinklauber260 Рік тому

      @@TheNetworkBerg Yes v7 and will check your PCC video!

  • @marjoni
    @marjoni 2 роки тому

    MikroTik MTCRE - Recursive Routing (Easy Automatic failover even for directly connected networks!) interesting discussion that is kept true, have a nice day

  • @carlb641
    @carlb641 2 роки тому +1

    My recursive route does not seem to work , not sure what I am doing wrong lol. Immediate gateway just says unknown instead of recursive.

  • @jamesugbojoide1229
    @jamesugbojoide1229 2 роки тому

    Thanks, network berg for your immense contribution to networking. I have this error from my Mikrotik router port interface below. I have bought the original cable and changed from auto-negotiation to 100mbps speed. This effort did not resolve the issue, kindly advise. Thanks
    ether2- SECTOR2 RADIO fcs error on link

  • @SrikantaDas
    @SrikantaDas 2 роки тому +1

    make a video of this based on ros 7.x. thanks

  • @roberttan9438
    @roberttan9438 2 роки тому

    Hi sir, Thanks for letting us know about this, its so help me a lot, hope you don't mind, i am applying this for Mikrotik CCR2116 but it coudn't run, hopeyou can help me. Thanks a lot

  • @mukto2004
    @mukto2004 7 місяців тому

    How can we do netwatch in this scenario? If primary down send notifications

  • @Reliable_Raj
    @Reliable_Raj 5 місяців тому

    Once primary link comes up, router is not sending traffic on it. Link gets down, untill we remove cable of second ISP. Please suggest....

  • @thefixitgal
    @thefixitgal 2 роки тому

    YES!!!!! Thank you

  • @jameshld1
    @jameshld1 Рік тому

    Tested and fail over to backup link works perfect only once the primary link came back online, I have to ask clients to restart their routers.any hack for this?

  • @edwardkwadjokubi8182
    @edwardkwadjokubi8182 Рік тому

    plz what topology are u using for the lab

  • @krishnamurthynalli7047
    @krishnamurthynalli7047 2 роки тому

    Hai, I am new to Mikrotik, my isp providing bandwidth by using RouterBOARD 3011UiAS as main server using port 4 and for failover connected ccr1009 to port 5(RouterBOARD 3011UiAS) when main server input goes down i have to manually change route to ccr1009, is their any way for auto failover, and i am using hotspot logins for 70 customers. I hope you understand my question. both lines from same isp

  • @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

  • @GabrielBascoJesseHugo
    @GabrielBascoJesseHugo Рік тому +1

    It seems that the route to the IP check has to be done through an IP address, it cant be an PPPOE interface. Is it possible to use a PPPOE interface?

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому +1

      For PPPOE connections I would rather recommend PCC, I still need to make a video on this but there are other videos about it on UA-cam already and the MT docs does a good job explaining it as well

    • @GabrielBascoJesseHugo
      @GabrielBascoJesseHugo Рік тому

      @@TheNetworkBerg Yep, I have used PCC before and I guess in cases of PPPOE interfaces is what I will use. But your video helps in other scenarios.

  • @Wooldorf
    @Wooldorf 2 роки тому

    not working with V 7.2.3 (mmips) - its that possible to recursive routing on V 7.2.3 (mmips) ?

  • @mailsidney
    @mailsidney 5 місяців тому

    Does this work on v7.11? I just tried this and doesn't seem to work.

  • @javiermacias5299
    @javiermacias5299 2 роки тому

    Thank you for the video, explanation is great.
    Is there a way to send a notification via email when one route is down? this is because it could be a remote site and this way you know one internet service is down.
    thanks again for the video.

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      Yeah you can setup a script or netwatch event to send you an email if one route goes down.

  • @martinmcnamee4362
    @martinmcnamee4362 2 роки тому

    This is awesome. Thank you. Just a question, how could you implement an email notification to advise ISP1 connection is down?

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +1

      Yep, should be doable using a netwatch script to send out an email if the ISP1 connection drops.

    • @martinmcnamee4362
      @martinmcnamee4362 2 роки тому

      @@TheNetworkBerg That's what i was thinking although I think it wpuld rock if netwatch could monitor physical interfaces. Such as ether1 or 2. In this case would you just monitor the Quad 8? I guess if you main connection has a static ip you could monitor that....

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +2

      Yeah Martin, I also very much wish you could monitor interface statuses with Netwatch. An alternative would be to just setup a script with the scheduler that you can run at X internvals to check the status of an interface and then use the email tool to send out a notification if an interface status is down. This requires a bit more tweaking and knowhow of the MikroTik scripting language, though I am sure a script like that exists already somewhere on the MikroTik forums. I am planning to someday go more into MikroTik scripting and add videos on it on the channel since I find it to be very useful.

    • @martinmcnamee4362
      @martinmcnamee4362 2 роки тому

      @@TheNetworkBerg Thats awesome! Will also have a look around for similar scripts - Your videos are amazing and your content is just what we need, reminds me of UA-camrs like NetworkChuck and David Bombal.... Keep it Going!!!

    • @shalak001
      @shalak001 Рік тому

      I would suggest setting up external syslog server and perform automation over there. That way you can do a lot more than a simple email.

  • @hourashrezaei2660
    @hourashrezaei2660 Рік тому

    I have been using the recursive routes for most of the mikrotik routers i have used in the last years but the recursive routing will not work on RB4011. Any suggestions?

    • @TheNetworkBerg
      @TheNetworkBerg  Рік тому

      Don't have an rb4011 to test with but should still work, which version of ros are you using?

    • @hourashrezaei2660
      @hourashrezaei2660 Рік тому

      Version 7.6

  • @ameador01
    @ameador01 2 роки тому

    I am getting so frustrated with this! I have tried to do this many times now, but it doesn't work. Both of my ISPs use DHCP. I try to use ports where you us IPs (other than the 8.8.8.8 and 1.1.1.1) - but my primary connection always fails. Secondary seems to work. I never get the status showing 'recursive by x' under the Gateway column under the Route List.
    The reference you gave for the link to Mikrotik's steps to setup recursive routing doesn't work - maybe an earlier ROS? I have ROS 6.48.6. Mine will not let me use cli to configure /routing/table (the second set of steps). Plus, the steps/method are very different than how you do it. Your way seems simpler and more modern approach.
    Does this not work with some ISP's? I am using Starlink in bypass mode as my primary and a cellular AT&T connection as my secondary. I cannot find anyone with any instructions how to setup this recursive routing where their ISPs are giving their internal router IPs via DHCP - which is the most common way it is done...
    Pulling my hair out :(

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      Hi Andrew, sorry to hear about the frustrations. The reference material I linked is actually for RoSv7 although there are more tweaks you need to do regarding the scope to get things working. If you don't mind could you upload your config to pastepin/google drive with sensitive information hashed out and send me a link on Discord? (Probably better than adding the URL here) You can join the discord server here:
      discord.gg/JZA7vFTF82

  • @oscarcam9804
    @oscarcam9804 2 роки тому

    is posible use recursive routes with vrf?

  • @usmansaleem9569
    @usmansaleem9569 2 роки тому

    Sir please Make a Video On Mikrotik Hotspot Social Login Facebook

  • @nassirmalindi6681
    @nassirmalindi6681 Місяць тому

    Hello, I have a different scenario. I have two ISP and two LANs (with other VLANs from the two)
    I want LAN 1 to ISP 1 and LAN 2 to ISP 2, but when one ISP is down, the other LAN should use the other ISP to go out automatically.
    I have done the configuration and it is working sometimes.
    What is the best configuration can you suggest to me?
    Thanks

    • @TheNetworkBerg
      @TheNetworkBerg  Місяць тому +1

      I would probably suggest policy based routing where you can just mark packets from each LAN range and setup routing the same way you were just explaining it.

    • @nassirmalindi6681
      @nassirmalindi6681 Місяць тому

      @@TheNetworkBerg what about the auto failover? I have tried many ways but still not automated

    • @notanial
      @notanial Місяць тому +1

      @@nassirmalindi6681 I've configured your scheme today (also was need). You can start a mikrotik forum topic in General with corresponding request. I will post my config in reply.

    • @nassirmalindi6681
      @nassirmalindi6681 Місяць тому

      @@notanial I have posted to the forum. thanks

  • @mrsacistv3553
    @mrsacistv3553 4 місяці тому

    no need mangle sir?

  • @bgut999
    @bgut999 Рік тому

    everything is ok when you use ip addresses for gateways. but i had rule set not by ip addrress but by interface. and recursive routing is not working that way. why??? normal routing works ok when you use interfaces even simple fail over works but not recursive.

  • @ethanervin2816
    @ethanervin2816 2 роки тому

    Is it possible to implement this with a dual dhcp wan setup that is doing load balancing? It would be nice to be able to monitor up status for both ISP's (and drop one if it is down) while still allowing for the load balancing to occur.

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому +1

      Hi Ethan, if your WAN connections are via DHCP then I would recommend rather implementing PCC. It incorporates firewall mangle rules with packet marking to achieve loadbalancing and failover. Unfortunately I do not have a video on the channel showing how to implement PCC, but following the MikroTik guide should also help you with setting this up.
      wiki.mikrotik.com/wiki/Manual:PCC

    • @ethanervin2816
      @ethanervin2816 2 роки тому

      I’ll do some reading and give it a go. Thanks for the advice and keep up the good work.

    • @ChrisNicholson
      @ChrisNicholson 2 роки тому

      @@TheNetworkBerg How about picking up the DHCP GATEWAY from the client. Then using a script in the DHCP-Client to update the route's gateway?

    • @hdmessias
      @hdmessias 2 роки тому

      Hello Ethan, I have the same problem here, both ISPs are dhcp and one of then is LTE actually. Did you manage this problem? If yes, can you share the solution? Thanks.

  • @hdmessias
    @hdmessias 2 роки тому

    Hello Sir. I saw this video, excellent, congrats, however like others said in the comments, my ISPs are using DHCP, so my problem is to make the recursive using DHCP instead. So, have you tried implementing recursive routing using DHCP for the wan? And on my scenario, the secondary wan connection is an LTE. Thanks.

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      For your scenario you should look at PCC, it effectively works as loadbalancing, will try to make a video on it as well

    • @hdmessias
      @hdmessias 2 роки тому

      @@TheNetworkBerg thanks, I will take a look at the PCC. However, if you could create a video for that it would be great. Cheers!

    • @gilbertpinamang1650
      @gilbertpinamang1650 2 роки тому

      Doing recursive route with DHCP is possible all you have to do is go to DHCP client click on the + sign, choose the right interface for your WAN connection and at ADD DEFAULT ROUTE you choose NO. By default it is at YES. This will enable you to assign the route manually and help you change the scope.

    • @shalak001
      @shalak001 Рік тому

      @@gilbertpinamang1650 how about if we set the default route distance to e.g. 10 and configure gateways not as IP addresses, but as interface names? It seems to work correctly that way, but I'm wondering if I'm missing something.

  • @xuxamelo
    @xuxamelo Рік тому +5

    That only works for v6, for v7+ target scope must be bigger than scope.
    Here is a Recusrive Routing + Failover very weel explained as well:
    ua-cam.com/video/eTmpBAAW_pQ/v-deo.html
    Nice work anyways, I love your channel!
    Awesome backgrounds :)

  • @vx9
    @vx9 2 роки тому

    Mikrotik Policy Routing Based on Client IP Address on ROSv7. please

  • @nikolashuminosky6987
    @nikolashuminosky6987 2 роки тому

    Hi Network Berg,
    im not sure why , but in v7 scope/target scope are calculated differently.
    If you do same thing in v7, that will not work

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      Will check out recursive routing in v7 and make a video about it too. Might also be one more of those features just do not work correctly currently in v7 which might be a good reason to wait for a long-term release before covering this or upgrading anything to v7.

    • @nikolashuminosky6987
      @nikolashuminosky6987 2 роки тому +1

      @@TheNetworkBerg
      there is new calculation
      **v7 - Target scope must be bigger than scope

    • @Kiwel_Eduardo
      @Kiwel_Eduardo 2 роки тому

      For ros 7.x. just change Target Scope to "11" on each default route.

  • @madan817
    @madan817 Рік тому

    port forward not working the mathrd

  • @MindSparqTrivia
    @MindSparqTrivia 2 роки тому

    How bout if I have 3 ISPs or more sir?

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      You could just add a third publicly accessible route out and make that recursive. Just don't forget to update the scope

    • @د.ناصركريم
      @د.ناصركريم 2 роки тому

      Or do I understand this step, because I have more than 8 service providers

  • @د.ناصركريم
    @د.ناصركريم 2 роки тому

    Or do I understand this step, because I have more than 8 service providers

  • @kresimirpecar4925
    @kresimirpecar4925 2 роки тому

    What's next ?

    • @TheNetworkBerg
      @TheNetworkBerg  2 роки тому

      Most likely TTL & ECMP will be covered next in the series :)

  • @Matt-ij4zb
    @Matt-ij4zb 8 місяців тому

    its easy to work with a script

  • @valentinvalentin7602
    @valentinvalentin7602 Рік тому

    HELP ME CONFIGURATION TEAMVIEW REMOTE ?

  • @wleedalshawsh9838
    @wleedalshawsh9838 2 роки тому

    if your video translation to arabic. it would be beautiful

  • @nicoladellino8124
    @nicoladellino8124 2 роки тому +1

    Very nice video, TNX.