Hey there,
if I setup Load Balancing over two identical modems??
Should I just get 2*the speed?
So if I got 50KB/s download speed on one modem will i now get 100KB/s
Or does it just help when you have allot of users on one internet connection?
Hey there,
if I setup Load Balancing over two identical modems??
Should I just get 2*the speed?
So if I got 50KB/s download speed on one modem will i now get 100KB/s
Or does it just help when you have allot of users on one internet connection?
Depends on how you balance the load.
Load balancing by packet over WAN circuits without explicit provider support for it is usually a bad idea but would get you the combined throughput of the two circuits.
Load balancing by connection works well but only approaches getting you the combined throughput - one big download will still run on just one link. The more connections you have, the closer you come to saturating both circuits.
So from what you saying i gather there are different ways to go about setting up load balacing???
Well i want to do it at my house,
I have a RB750 and two Iburst modems With network ports)
I will probably only have about 5 users at once.
I am looking to increase speeds. not really increase load?
Can i do this???
and would i need two identical accounts on each modem?? so like 1gb cap @ 1mb/s on each one
http://wiki.mikrotik.com/wiki/PCC
You don’t necessarily need the circuits to match with PCC, either. The wiki example balances via two routing marks. You can extend that - if one circuit has 1 meg down, and the other 3, you’d balance four times but assign the same routing mark three times. That way the 3 meg circuit has a 3/4 chance to get hit, and the 1 meg circuit a 1/4 chance to get hit.
thanks will give it a try
So if i jut rest my router and then past this into the terminal it should just work???
/ ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=wlan1
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=wlan2
/ ip firewall mangle
add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=wlan2_conn
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wlan1
add chain=output connection-mark=wlan2_conn action=mark-routing new-routing-mark=to_wlan2
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=Local
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=Local
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0
action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1
action=mark-connection new-connection-mark=wlan2_conn passthrough=yes
add chain=prerouting connection-mark=wlan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan1
add chain=prerouting connection-mark=wlan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan2
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wlan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_wlan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=wlan1 action=masquerade
add chain=srcnat out-interface=wlan2 action=masquerade
Probably not, no. That’s straight from the wiki. You’d have to substitute your own IP addresses at the very least.
would you mind like deciphering the code for me. explaining what each line does?
like the 1st bit.
line 1: assigns ip to local side (( side that will be requesting the internet)) So like my network
line 2 & 3: i THINK are the two interfaces that the two modems will be plugged into???
and obviosly i would change the interface naems as i am using a RB750
The wiki has a fairly detailed explanation of each section.
funny, thats just what i was reading,
I tend to ask on the forum and then go find my answer on the wiki,
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wlan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_wlan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping
do i change the ip addresses there???
and is this code include the ROUTER part. eg. putting in the username and password for the PPPoE account on my interenet???
ok i have typed all that into the terminal and it all worked.
now do i have to add a PPPoE client on the two Ports that have been assigned for the WAN???
And aslo What must my DNS be???
http://wiki.mikrotik.com/wiki/PCC
the info and settings above. is that just combining to internet connections,.
each public interface is not setup as the Gateway is it?
i want ether 1 and ether 2 to each have their own pppoe account and then just split the load between the 2 modems.
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=Local
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=Local
with this bit of code.
is it possible to change
dst-address=10.111.0.0/24
to like “IP address of ether1” cause my isp gives me a dynamic ip so the ip addres is changing the whole time, i have PPPoE connects on ether1 and ether2
or maybe under /ip addresses create like an alias ip for ether1’s dynamic ip?
Im just not sure on how to go about doing this with a dynamic internet ip address
Ok i have been tring very hard to get this to work the way i want to and im not coming right? im nit sur eif the problem is in the firewall or the route?
Ok the set up i want is:
1 iburst modem in ether1 connected to a PPPoE account names internet1 gets its ip address from isp (dynamic)
1 iburst modem in ether2 connected to a PPPoE account names internet2 gets its ip address from isp (dynamic)
Then ether3 is connected to a hub where all the computers ly.
now i have eddited the code as much as i can (the way i thought it should be) but the whole ether1 or internet1 thing confused me, so compared to the wiki tutorial i replaced wlan1 with internet1.
Please note only 1 modem is pluged into ether1 as i dont have a second one yet, i want to get it working before i buy one.
Please please help asap:
[admin@MikroTik] > /ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=input action=mark-connection new-connection-mark=ether1_conn passthrough=yes
in-interface=Internet1
1 I chain=input action=mark-connection new-connection-mark=ether2_conn passthrough=yes
in-interface=Internet2
2 chain=output action=mark-routing new-routing-mark=to_internet1 passthrough=yes
connection-mark=internet1_conn
3 chain=output action=mark-routing new-routing-mark=to_internet2 passthrough=yes
connection-mark=internet2_conn
4 chain=prerouting action=mark-connection new-connection-mark=internet1_conn passthrough=yes
dst-address-type=!local in-interface=ether3 per-connection-classifier=both-addresses:2/0
5 chain=prerouting action=mark-connection new-connection-mark=internet2_conn passthrough=yes
dst-address-type=!local in-interface=ether3 per-connection-classifier=both-addresses:2/1
6 chain=prerouting action=mark-routing new-routing-mark=to_internet1 passthrough=yes
in-interface=ether3 connection-mark=internet1_conn
7 chain=prerouting action=mark-routing new-routing-mark=to_internet2 passthrough=yes
in-interface=ether3 connection-mark=internet2_conn
8 chain=prerouting action=accept dst-address-type=local in-interface=ether3
9 chain=prerouting action=accept dst-address-type=local in-interface=ether3
[admin@MikroTik] > /ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade out-interface=ether1
1 chain=srcnat action=masquerade out-interface=ether2
[admin@MikroTik] > /ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 S 0.0.0.0/0 reachable Internet1 1 Internet1
1 A S 0.0.0.0/0 reachable Internet1 1 Internet1
2 S 0.0.0.0/0 unreachable Internet2 2
3 S 0.0.0.0/0 reachable Internet1 1 Internet1
4 S 0.0.0.0/0 unreachable Internet2 1
5 DS 0.0.0.0/0 reachable 41.213.8.1 1 Internet1
6 ADC 41.213.8.1/32 41.213.14.154 0 Internet1
7 ADC 192.168.1.0/24 192.168.1.1 0 ether3
[admin@MikroTik] > /ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.1/24 192.168.1.1 192.168.1.1 ether3
1 D 41.213.14.154/32 41.213.8.1 0.0.0.0 Internet1
[admin@MikroTik] >
Please please help me to fix my problem,
I am quite sure that there are allot of things wrong
Ok never mind that,
I have got it working,
In other words, the internet works with 1 or 2 modems.
But im not sure if the whole "bridging connection thing: is working, cause if i go to speedtest.net with both modems plugged un it is the same and if one modem was plugged in and as the test was being done i was wating both PPPoE graphs and it seems to only use one while it was testing, not both.
but it does use both with normal browsing but im not saying at the same time, its just both graphs have usage on them.
Im not sure if my firewall rules are maybe incorrect,
but could some one please set me in the right direction?
Here is a print screen of when i was loading a video from youtube:

I have been looking and i see you can get it to mangle it by different things,
src address, or dst adddress or both and it also has ports,
Which one do i want to do it to?
you can use both modems but you cannot join bandwidth
http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways
check this
it can divide your users in 2 networks
pcc can make loadbalance and load not combin
1 + 1 = 2
1 + 1 = 1 + 1
1 + 1 = ½ + ½ + ½ + ½
1 + 1 = ¼ + ¼ + ¼ + ¼ + ¼ + ¼ + ¼ + ¼
in other word more conection more balance
So how exactly does it decide where what goes, i know ot divedes some thing and checks the remainder.
But i see you can change the per connection, you can have, src address or des address or both
What do i want?
Dont you get a algorythim that sends the rackets one one one alternating each modem??
And how do i change the probablitly that that modem is going to get chosen?