Multiple uplinks using PCC, Load balancing
Ғылым және технология
0:00 - Intro
4:56 - Routing tables and routes
6:47 - Match outgoing traffic to incoming
9:53 - PCC - distribute connections
12:57 - LAN to Internet routing marks
14:00 - Testing setup
15:08 - Summary
Load Balancing: help.mikrotik.com/docs/displa...
Mangle: help.mikrotik.com/docs/displa...
Policy Routing: help.mikrotik.com/docs/displa...
Пікірлер: 220
Fantstic video... These videos are SO valiable and I wish these were done 15 years ago! Martins, you have explained this is terms that are easily understood; and easily repeatable. I know there were examples on website; but this gives the "picture is worth a 1000 words" a brand new meaning. Thank you!! I look forward to future config overviews.
@domhamai
11 ай бұрын
And a video is a thousand pictures!
Mikrotik just discovered a new talent on content creation. Great job Martins!
The way this guy explained such an advanced topic with such simplicity is mind-blowing. It's like he's telling a captivating story that even a 10-year-old kid could understand. I'm amazed at his ability to break down complex concepts and make them accessible to a wide audience. This is the kind of teaching we need more of - making knowledge accessible to everyone. Kudos to him for his exceptional communication skills!
Awesome video! I hope you keep making educational videos like these because your OS and products are amazing and teaching people how to use them is just another way to show them to a wider audience.
It took 10 minutes to setup , with 2 isp working perfectly , great description . Thank You
Nice video...one of the best tutorials for load balancing PCC...👍👏👏👏
Thanks. There are plenty suspicious & unverified DIY instructions, having the "official" one is very valuable.
the best mangle tutorial - I have been looking for days for something like this that will actually work in v7+
Thank you, concise, concrete, very helpful explanation, very useful in OS7 versions.
Great JOB! I have been having trouble with my 2 wan system using another multi wan scenario. This one sounds like the best thought plan for my application.
Nice video. Very informative. Thank you for the video Mārtiņš & team.
fantastic video martins have explained clearly and simply....please add a video with configuration of failover recursive routes based on config of this video
Love these videos!! Helped me get into mikrotik faster and made it easy.. maybe adding to this design would of been nice to see recursive routes .. Thank you!!
Excellent video. I could be complemented by adding how to incorporate recursive routing and ISPs with DHCP address attribution on this scenario, as the "default gateway" for each ISP changes over time.
Nice! Part 2 please 🙏 thank you.
Thank you for such a clear and qualitative explanation. I would like more videos like best practice options, especially about load balance, wan or vpn failover etc. Thank
Time well spent 👍, we like them.
Great video, will done. I think you forget mentioned NAT.
Thank you from yours video settings router demonstration. I will try this settings in my router.
Thank you. This is what I needed.
Excellent video!
Great video! Just a small twist: if your connection is not local, use the unicast option in the classifiers.
Nice video.. Clear and concise. Can you make a video on how to integrate QoS with Load Balancing (PCC) with a theory explaining how it works?
Thanks again Martins 👍😎
视频说的很详细,👍
The issues I have with these setups are: 1) most ISP's I deal with are issuing dynamic IP addresses, so you can't use static routes in the routing tables. 2) Since the ISP device is almost always local, just pinging the local address does no good for a connection outage. You need to ping a REMOTE device to check connectivity. I haven't seen any of these videos address these issues.
excelent explanation.
very informative. next discussion about policy based routing. please
good explanation thank you so much
Thank you for this video. You have explained a lot of information very clearly. In the MikroTik wiki on PCC, there are *accept* rules in the prerouting chain for traffic from the LAN destined to connected WAN subnets. These rules are placed before the PCC rules and are meant to prevent a routing loop. Can someone help me understand how these accept rules prevent a routing loop? Which traffic from the LAN to the WAN interface subnets will match these rules?
nice manual, thanks!
😊 un pur bonheur. Very cool. Enjoy myself
Nice video! Is there any chance to export finished config (RSC or plaintext) and place it somewhere, that anyone can review it? I have done this setup few years ago, but it was quite buggy... probably I had bad PCC values.
Awesome!!!
So elegant..!
Great video, is there a simple way using Mangle to force traffic from a specific local ip to use ISP1 as a priority?
Great video thanks. A question why you didnt used the Pasthrough option?
Thanks about this videos. If i want to setup 8 isp loadbalacing on CCR2004. What can i do ?
Best helpful video for me... Thanks 🫡👍
Weldone and nice . Lengthy but worth it
Great video! I have a question, what happens when we have a BGP connection with the 3 ISPs?
Martins this is a really helpful video, thank you! I have just configured my RB4011iGS+ with to ISP connection following your tutorial and all is working perfectly! I just wanted to ask you something?! I have already setup 5 VLAN-s under the Bridge Port to this RB4011iGS+ router! I also added ether1-ISP1 and ether10-ISP2 at the WAN Interface List and at the NAT side > Chain: srcnat > Out Interface List: WAN > Action: masquerade! Hope this is a good configuration! My question is: At @10:21, the mark new connection from LAN... Am I supposed to choose All VLAN as In Interface? Thanks in Advance!
best tutorial 😁
Thanks for the video, really comprehensive although I don't understand two things. It does not divide the bandwidth but the packets, if I have two connections, one fast and one slow with sim that I keep as failover what is the best strategy to make it use as little as possible? Second, tried and it works but wireguard vpn works if I ping from router but not from my pc for example, any debugging tips? Thanks!!!
nice tutor i'm mikrotik user from indonesia , gbu
Thanks but I have an scenario and a question: How can use PPC if I want Primary and Standby scenario? For example broadband of 200 Mbps as primary and LTE as backup only? Also as my uplink is directly to a local cable modem and 3rd party LTE router the WAN port of my Mikrotik can be up but the Internet can be down. Don’t do require here to do recursive routing? And if so how can I do it when my ISP gives my WAN IPs only via DHCP in my router instead of static routes? Thanks and great video!
thank you 😊
Great Video, I tried with my dual ISPs and while speed wise it seems to be working. I am getting 50% packet loss. Any help?
❤👍💪
Mark connection rules also mark the ospf connection which use multicast address. I would suggest to accepting routing related connection before marking for load balance or incoming connection into router.
thank you👻
Can you support MPTCP that is targeting an Internet endpoint (e.g. AWS EC2 instance)?
1. How do you ensure interconnects maintain the correct gateway (say the router has 2 WANs and 2 other private networks (for interconnecting to the LAN of another router (B)), it sends and receives traffic for, i.e. a PC network isolated that needs a server under in the A routers LAN, so pass between LAN ports (router B has a DHCP lease in RouterA's LAN) ), I assume as they are not in the LAN bridge they will default to the "main" route table? 2. How do route table routes work if the correct gateway in not in the table, can they jump to the "main" table if no entry? Or just fail?
Thank you for the video, it`s very helpful! Please can you make the video for Queues with Multiple uplinks?
What about FastPath\FastTrack should it be disabled?
Thanks
great video, btw miktotik ip cloud not responding in multiple wan, what should i do?
Thanks for the video How can I use mangle rule to route http,SSL,smtp and pop 3 traffic's to isp1 while the other traffice will go to isp2
This is a great video, thank you. But I have one ISP with 1GB uplink and other with 50MB uplink. There are certain services (VOIP) that have to operate over the ISP2. What's the best way of load balancing this? Do I need to make hundred mange rules? Should I just create a separate routing rule for the VOIP subnet to only use ISP2? I would appreciate any advice, I'm still kinda new to this.
@mikrotik
8 ай бұрын
Instead of using PCC, look into other methods of filtering out VOIP traffic.
Thanks Martins - it has helped me a lot to understand how mikrotik works to balance connections. I have a question - If the ISP2 router is turned off for example. Will the connection marking rules continue to mark new connections that are assigned to "ISP2.conn" by counter and therefore would be lost? Thank you
@mikrotik
9 ай бұрын
Like the video says, when ISP2 goes down, main routing table will be used, meaning - the route with the lowest distance will be used which in our case was ISP1. Nothing will be lost, that is the whole point of this setup. So that it always works.
Can you provide video on load balancing with Hotspot?
درس جد رائع و واضح ... كيف يمكن معالجة الأمر مع الموجه من نوع أجهزة التأرجح في التحميل و او دمج ثلاث خطوط مختلفة tenda ax 3000 w30e له واجهة جد مختصرة و لا تتيح فسحت الاستفادة من مؤهلاته رغم كونه يتضمن ثلاث منافذ من فئة wan/lan و واحدة من فىة lan mtu بين 1400 إلى 1500 أنوه بجهودكم العلميو على جهودكم الفاضلة
Hi experts! first of all, thank you bigtime for this video. now my concern is i'm not able to find Routing Table option from the Routing menu in my CCR1036. im pretty sure it's because im only using RouterOS 6.48.6. upgrading to Version 7 at this point would be very risky as this router is already in production. might i humbly ask how to go about going through this tutorial with RouterOS v6.48.6? enlighten me oh, wise ones!
@alexzanderpurwoko1018
11 ай бұрын
Upgrade the firmware and update winbox to latest version would help you Be carefull on you upgrade
I will look at this later with a clear mind. I am using an LHG-LTE18 as my internet Modem/Router, but I've also bought an RB5009 for this exact purpose. I wanted to buy a second LHG, and have them both feed the connetion to the RB and the RB serve as my main Router. I wanted to do that because when using 4G in my country and with my ISP you have to options. Either use "vpn" APN or the normal one. VPN gives you a public IP (like ADSL for example) but limits bandwidth to 150Mbps. Normal APN puts you behind a NAT (CG-NAT) effectively removing your ability to port forward anything inside, but gives you Full Speed. I wanted to combine two lines, with two seperate 4G SIMS, on two LHG-LTEs. But it's SO HARD setting up these things since RouterOS is so complicated (in order to be detailed and powerful), and the community on Mikrotik Forums didn't really help me much, as from what I've seen, they don't really like noobs. :) Currently my RB5009 is just a brick sitting in my closet :( Anyway, will check the video later and maybe I can find more info on how to set my net up.
@mikrotik
Жыл бұрын
Did you manage to find a solution?
@bonamin
Жыл бұрын
@@mikrotik No. I had no time to look further into it. I need to gather information that is scattered around because I'm not an expert on the subject. The problems I face mainly are: 1) I was told by Mikrotik specialists that if I put the LTE18 on "Passthrough" mode, I should have setup a VLAN for management. 2) I then need to figure out the rest of the setup so the RB works as a Router and the LTE18 machines work as Internet supliers only. Anyway, the problem as I said, is that I didn't have the time to look THAT DEEP into the matter. My LHG-LTE18 is super fast as it is. I just wanted to make my VoIP phone work as well. :(
Thank you for the awesome tutorial. However, I really need guidance on how to implement NTH load balancing in RouterOS v7. I've tried numerous times but something always goes wrong. Could you please provide any information or resources on how it works? Thank you.
Nice job. But local ruting table will not work?
Hi,how about load balance configuration with same gateways it is the same procedure? If not then how? Thanks
i have an Mikrotik hAP ax lite LTE6. I have convert the ether1 port as WAN port and ether 2,3,4 and wifi remains in bridge-LAN. I would like to configure the router in order to use with load balancing between LTE connection and ether1 WAN connection (for example i am in a hotel, i plug the router in my ether1 connection but i want to use LTE also in combination). I tried to follow the tutorial but failed because i dont know the IP addresses of the gateway for LTE and the gateway of the WAN in ether1 changes from one trip to another. Is there a permanent solution, configuration that i can use? thanks for the videos
Great video, got it working with two WAN connections. my only problem now is the router itself does not have internet, ping outside shows "No route to host". anyone has any ideas?
I want to configure two isp pannels data and want assign user as per my wish service 1 or service 2
how about with failover and hotspot?
Can i use this method in version 6.48.7 ?
Can this config be applicable on the same IP gateway ?
Good day Martins, I am struggling to configure Mikrotik Router. I am using Pfsense as firewall with PPPoE and multiple VLAN's. I want to deploy Mikrotik at client homes that will have SSID for PPPoE and SSID for VLAN interface that is our hotspot. Can you please guide
It's looks like good, but what about IP/Firewall/NAT/masquerade action? I think, it's missing from the steps!
Thx! Really good? 👍
How can we do the default route part dynamically in ROS7? I‘ve had the problem that sometimes the IP of the default gateway changes on reconnect via PPPoE… in ROS6 I could do that with a route filter in dynamic-in and change the routing table there. Is there a non-scripting way to do this in ROS7?
@mikrotik
Жыл бұрын
For VPN you simply specify the VPN tunnel name as the gateway, not the nexthop IP address.
@skynetoffice3632
10 ай бұрын
@@mikrotik This configurations can load balances the multi wans without routing tables?
i tried this and multi wan works, i just found something, that when i use this type of firewall mangle, for some reason my hotspot > captive portal popup is not working /showing. after disabling this and tried the diff pcc approach, the hotspot captive portal pop ups automatically. why is that? should i add more configuration on firewall for the hotspot?
Very nice video, but what if I get on all connections IP´s and Gateways dynamically via DHCP, how can I prepaire the needed Routing tables? That´s unfortunaltly the critical point in using more than one ISP here in Germany.
@UlrichWessendorf
Жыл бұрын
@@geogmz8277 Could you give me the headline of the forum title? The forum itself is well known, but it's hard to find something without knowing details🙂
@davidcraddock6474
Жыл бұрын
@@geogmz8277 Would be very interested in this as well..
@mikrotik
Жыл бұрын
As mentioned in the video, this video was about PCC method and we did not configure things like DHCP server, NAT, firewall, users, etc. You can not dynamically adjust routes in differnet routing tables automatically based on the DHCP client. But it is very easy to write a script on the DHCP client which simply updates the route when gateway changes (help.mikrotik.com/docs/display/ROS/DHCP#DHCP-LeaseScriptExampleLeasescriptexample). However, thank you for the inspiration. We will see if we can convince our developers to allow doing this dynamically in the upcoming RouterOS releases. :)
This is nice, but how do one do this if the WAN interfaces use DHCP?
What about NAT (masquerade)?
The video state that there is 3 differents connections. static, dhcp, pppoe but then later @ 5:30 route to static GW are added. Usualy with dynamic IP ISP (dhcp or pppoe) you also have dynamic GW. I'd like to see the workaround there. Recursive route ? scheduled script ? dhcp client script ?
@dpgdigit
Жыл бұрын
Because we don't know the GW IP, we can not create route @ 5:30. This script will do that dynamicaly { :local rtable "ISP1" :local count [/ip route print count-only where comment=$rtable] :if ($bound=1) do={ :if ($count = 0) do={ /ip route add check-gateway=ping gateway=$"gateway-address" routing-table=$rtable comment=$rtable } else={ :if ($count = 1) do={ :local test [/ip route find where comment=$rtable] :if ([/ip route get $test gateway] != $"gateway-address") do={ /ip route set $test gateway=$"gateway-address" } } else={ :error "Multiple routes found" } } } else={ /ip route remove [find comment=$rtable] } }
Can it also be considered as a failover setup? Thanks
Would this still dynamically route traffic if an ISP loses Internet but the ISP gateway is still ping able? Ping seems like an unreliable way to determine if a route is down because here in the states the gateway is usually an ISP modem device and that never goes down but you'll lose Internet
@nick9323
Жыл бұрын
Yep, it will. Google pdf "Monitoring the Internet Connections of WAN Links with Only Routing Configuration", it's has and example of your needs
@peterkovacs233
Жыл бұрын
you can check a gateway internet connection with recursive routes. This is what you looking for.
@CaMapTrang
Жыл бұрын
you are right (Y) , on the os7 router you can check fail the port connected to the BFD instead of using the very inaccurate Ping ! my video at 28:11
@mikrotik
Жыл бұрын
Yes, then the route would be still active. However, this video was not about that. It seems that this is the solution that you are looking for - help.mikrotik.com/docs/pages/viewpage.action?pageId=26476608
I set it up a long time ago. Everything would be fine, but I discovered that the connection to the router is ISP2 (the router page does not open). The connection is marked ISP1. Help
Can PCC load balancing be achieved without NAT,DHCP? I have an existing router that handles NAT and DHCP. I am considering introducing PCC load balancing in front of this router to increase bandwidth
Can this setup be hardware offloaded on the CCR2116 ? Does it supports multiple routing tables? Or will it be at least partially offloaded?
how would you chnge this config to only use the secondary ISPs when the ISP1 is down?
Hi Guys I have a difficulty on having internet connection with your config. I already double checked the config but it seems my computer cant get internet connection without configuring masquerade on the NAT. Is that right or I miss something.? I also want to have a port forwarding rule as you mentioned in the last portion of the video but it seems the port cant be open. hopeful for your reply.
@radenrohmatulloh
11 ай бұрын
Right. You should configure masquerade on NAT fisrt. I think in the video was already has masquerade config in each port from isp
Setting up a multivan for the Internet is not a problem. But if the task is to create a VPN tunnel through each provider where the static IP is only on one side, then there is a problem. Can Mikrotik balance VPN? I tried to set it up for a long time, but the multivan and 1 tunnel did not move. Is there information on how to implement balancing of VPN tunnels between the main office and the branch? I'm trying to configure everything on wireguard.
i got it from your mikotik help page : " PCC is not a valid method, in case of Hotspot(captive portal) - due to the fact that Hotspot uses web-proxy and it uses only the default routing table, at the moment. " is this statement still valid as of today ? and if yes what other method best suit load balancing for hotspot . ECMP or policy base routing . which ?
What if I want to configure recursive route as my modems aren't configured as bridge 🤔
@mikrotik
Жыл бұрын
No problem, just do it, this was just one example of the idea how to make it work. Anyone is free to get inspired from the video and make adjustments. This is basically the step one, then the sky is the limit.
At about 5:30 you add the route tables to the route list. What I do not understand is that you give each one an immediate Gateway address, but seeing that one of the ISP's is dynamic how can you know the gateway address?
veryyyyyyy simple only use table mode to result loadbalance 3 isp thanks broohhhhhh
What is the difference between using pcc "scr address and port" and "both address and port"? Thanks
Still can't manage to make it working without that main route. It looks like those ISP table and route mark are just ignored
When you selecting In. Interface for the 3rd group of rules you select LAN. Is this the name of your bridge?
@TheDoblink
4 ай бұрын
I think so
Nice video but one question, what if we had 3 pppoe isp connections on the same router?
@nick9323
Жыл бұрын
I have 2 pppoe on the same router, no problem. In pppoe client there is Default route distance parameter
@MikroTikBlog_com
Жыл бұрын
To enable connectivity for a third internet source, consider adding identical rules and replacing the value '2' with '3' in the connection classifier tab.
@mikrotik
Жыл бұрын
We already had, in the video. ISP3 was PPPoE VPN. With VPN you simply specify VPN inteface name as a gateway, if the remote address tend to change.
@Stratocastoras
29 күн бұрын
@@mikrotik I know its been a while but lately when using the interface name ex pppoe-out1 or ISP1, i do not get internet access but when using ISPs network address which indeed is changing the internet access works. It has to do with pinging the gateway but if i turn that of failover does not work
How to add weight to ISP? One of ISPs is 2x faster than the other.
will this work on radius?