Community discussions

MikroTik App
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Thu Jan 21, 2016 9:18 am

Dual Wan (Load Balancing) over router board ( RB951G-2HnD )

Tue Apr 10, 2018 5:19 pm

Dear sirs,

I own a RB951G-2HnD, a UBNT Radio, and a ADSL Modem from older times, ... currently i'm using radio as a bridge to connect to the ISP, and then i connect to Mikrotik for PPPoE, and then i connect it to wireless modem, or pass to other ADSL modem which is connected to my PC and Mikrotik, which also provides more ports or wireless traffic...

The issue is the bandwidth i buy from ISP is so expensive toward my income, and now new ISP provides better services than the day i stop using it, still they are metered connection, and my connection is slow but non-metered.

So i though to get a new service from the Metered ISP, which is about 1/4 of the price i pay for my connection, then decrease a little speed on this one, and add that one to it...

So
1. I want to perform some kind of load balancing in here... first is it possible on mikrotik?
2. I want to Put the beginning of the bandwidth on my non-metered connection, so if the connection is wasn't sufficient or somehow it get disconnected, the traffic or part of the traffic move to the faster service... in this case, most of my usage goes through my non-metered connection, and if somehow i needed more speed it let lose to the other one...

any other solution?
if the metered connection be the first to get used, the time i may need more speed, i may find the traffic finished!!!

*there is no specific connection that i want to load balance based on requests IPs...*


My Configuration
You do not have the required permissions to view the files attached to this post.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Thu Jan 21, 2016 9:18 am

Re: Dual Wan (Load Balancing) over router board ( RB951G-2HnD )

Wed Apr 11, 2018 3:45 pm

I just followed this tutorial and.... https://www.youtube.com/watch?v=ThYBtmo_bcs
i end up with these:
(i share one of firewall tab on terminal since i couldn't open two tab at the same time)
PCC_LoadBalancing.jpg
Yet still i have two question:
the man did not set any local `masquerade` NAT to connect it's local IP, but i had them from the first time i config my router, and when i disable them the network fall (if my windows is connected to VPN, and then i disconnect the firewall it remain working, until i cut the VPN connection), just two connection per wan (what he set, and you can see in picture)
Second: i wish also to give more priority to WAN 1 than WAN 2... and i like most of my data goes through it, and use that as backup, when the first wan is not sufficient.
You do not have the required permissions to view the files attached to this post.
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Thu Jan 21, 2016 9:18 am

Re: Dual Wan (Load Balancing) over router board ( RB951G-2HnD )

Fri Apr 13, 2018 9:24 pm

any help?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22120
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Dual Wan (Load Balancing) over router board ( RB951G-2HnD )

Fri Apr 27, 2018 10:03 pm

neu as per another post...... I am confused the link you set in regard to some of the settings........

DSL MODEM IP’S
DSL MODEM 1 = 192.168.1.1
DSL MODEM 2 = 192.168.2.1

/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

He/she said is WANIPs were 192.168.1.1 and 192.168.2.1
The Route Rules ask for GATEWAY IP, not Public WANIPs?? Am I reading this wrong?

I am lost in the IP Routes.
Lets take the default routes (the bottom two), there is no need for check gateway ping on the secondary gateway because when the first gateway comes back up traffic will revert to that primary gateway.

The top two IP routes affiliated with mangle rules are very confounding.
He has check gateway Ping on the first rule, which makes no sense because no other secondary route is provided for To-Wan1?
In other words if that network goes down, there is no alternate!!
If the second route had stated To_WAN1, then it would make more sense (but the second rule would then, not need ping check gateway)

The second rule has the same issue. check ping gateway but WHY, there is no secondary route provided for To_WAN2 to go to??

I think I am missing something here but cant put my finger on it.??
 
User avatar
deadManN
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Thu Jan 21, 2016 9:18 am

Re: Dual Wan (Load Balancing) over router board ( RB951G-2HnD )

Fri Apr 27, 2018 10:33 pm

neu as per another post...... I am confused the link you set in regard to some of the settings........

DSL MODEM IP’S
DSL MODEM 1 = 192.168.1.1
DSL MODEM 2 = 192.168.2.1

/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

He/she said is WANIPs were 192.168.1.1 and 192.168.2.1
The Route Rules ask for GATEWAY IP, not Public WANIPs?? Am I reading this wrong?

I am lost in the IP Routes.
Lets take the default routes (the bottom two), there is no need for check gateway ping on the secondary gateway because when the first gateway comes back up traffic will revert to that primary gateway.

The top two IP routes affiliated with mangle rules are very confounding.
He has check gateway Ping on the first rule, which makes no sense because no other secondary route is provided for To-Wan1?
In other words if that network goes down, there is no alternate!!
If the second route had stated To_WAN1, then it would make more sense (but the second rule would then, not need ping check gateway)

The second rule has the same issue. check ping gateway but WHY, there is no secondary route provided for To_WAN2 to go to??

I think I am missing something here but cant put my finger on it.??
well it's not exactly that way, i just tried to demonstrate that one of them can be line one and other line 2, but exactly there's one that bridge to radio, and then use PPPoE and another as you said is a ADSL Modem

I'm not sure what these secondary you says is, i also was wonder why the video configuration doesn't redirect one to the other, and both of routes are wrote completely separate...
But there's one thing i now, these routes does not support each other once one goes down, they both work Simultaneously... when the provider of video used it.. if there was one or two connection data would go from line 1, then after other connection it went through route 2, if it was something like download manager, it would used whole bandwidth through all connections that it open...

Who is online

Users browsing this forum: No registered users and 17 guests