Community discussions

MikroTik App
 
nzjimmy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Tue Oct 03, 2017 11:47 pm

First 100Mbps WAN1, next 100Mbps WAN2

Wed Oct 04, 2017 12:43 am

Hello, my first post ... am newbie

Is there a way to route all traffic up to 100Mbps to come from WAN1 and the rest from WAN2? Also, if WAN1 goes down all traffic to route through WAN2?

I have been looking at connection bytes with mangel rules but cannot find any posts where this is being done.

Main WAN(1) is static route to ISP's gateway with /30, WAN2 is typical ppoe connection to different ISP. Both are fibre with static IPs. Running MT Hotpsot on one VLAN and have a bunch of VLANs not using Hotpsot with /27s that have open access to Internet with simple queues.

Any help or advice appreciated.
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: First 100Mbps WAN1, next 100Mbps WAN2

Wed Oct 04, 2017 10:34 am

If you are looking for bandwidth-based load balancing, check out this presentation:
https://youtu.be/67Dna_ffCvc

Feel free to skip to around 6:30 - that's when the Mangle stuff starts.
 
nzjimmy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Tue Oct 03, 2017 11:47 pm

Re: First 100Mbps WAN1, next 100Mbps WAN2

Wed Oct 04, 2017 10:52 pm

Great presentation, this is exactly what I needed. Thank you.

Is it possible for me to see the slides in this presentation? It would be a great help.
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: First 100Mbps WAN1, next 100Mbps WAN2

Wed Oct 04, 2017 11:38 pm

Great presentation, this is exactly what I needed. Thank you.

Is it possible for me to see the slides in this presentation? It would be a great help.
There is a link in the video description :)
 
nzjimmy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Tue Oct 03, 2017 11:47 pm

Re: First 100Mbps WAN1, next 100Mbps WAN2

Sat Oct 07, 2017 1:13 am

Thanks Tomas!
 
nzjimmy
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Tue Oct 03, 2017 11:47 pm

Re: First 100Mbps WAN1, next 100Mbps WAN2

Thu Nov 11, 2021 6:52 am

Hello again,

I just finished building a WISP for 50 customers but 200 have joined. I've started upgrading backhauls and everything is going great.

I need some help employing Tomas' script for this site as i'm upgrading to 2Gb backhauls and want to get this additional capacity through to customers. The network is all layer 2 with a VLAN per customer and "data vlan" feature to strip tag at CPE - this keeps network secure and stops broadcast issues.

So, the setup is;

- 1 Mikrotik 1009
- Dual Gb fibre WAN with one static route and one PPPoe to different ISPs
- 1 VLAN per customer with a 10.0.0.0/30 address per
- Cue done at customer router (hAP AC2/3) but will remove soon and use 1 PCQ rule with /30 as identifier

I have a couple of questions regarding this script as I tried unsuccessfully to get it working last night. It's in production so I need to be very careful (safe mode:)

- Do I need to individually add each customer's (10.0.0.0/30) network to the "connected" address list, or can I just put 10.0.0.0/16 as a single entry?
- What does this mangle rule do? "all connected networks going to connected networks - accept"
- If a LAN network like 172.16.0.0/24 is not added to "connected" address list, how will it behave?

That's all thanks. I need to properly understand everything I do so when I see a rule I don't get, I need to ask about it. I assume it's not a filter rule so won't just accept traffic going from connected to connected, but I don't know why it's there.

Thanks for your help. This script is still brilliant!

Who is online

Users browsing this forum: Google [Bot], maldridge, sakistech and 109 guests