Community discussions

MikroTik App
 
ronix
Member Candidate
Member Candidate
Topic Author
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

load balance withe 2 different WANs

Fri Nov 09, 2012 11:26 am

Hi...

I was made a PCC load balance with 2 WANs :
1st : 5M up / 5M down
2nd :5M up / 5M down

but now I want to upgrade one of my WANs connection to be like this :
1st : 5M up / 5M down
2nd :7.5M up / 7.5M down

how can i solve it ? ( by double the traffic in 1/2 ratio )

Regards,
 
ronix
Member Candidate
Member Candidate
Topic Author
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: load balance withe 2 different WANs

Fri Nov 23, 2012 1:05 pm

up....
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1075
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: load balance withe 2 different WANs

Fri Nov 23, 2012 9:28 pm

The ratio there is 2/3, not 1/2. So, two connections on the first WAN and three on the second.
 
mixig
Member
Member
Posts: 315
Joined: Thu Oct 27, 2011 2:19 pm

Re: load balance withe 2 different WANs

Sat Nov 24, 2012 7:42 pm

 
ronix
Member Candidate
Member Candidate
Topic Author
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: load balance withe 2 different WANs

Sat Nov 24, 2012 8:06 pm

so my Denominator will be 5 :

/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/3
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/4

is this rule right or not ?
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1075
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: load balance withe 2 different WANs

Sun Nov 25, 2012 1:00 pm

so my Denominator will be 5 :

/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:5/2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/3
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:5/4

is this rule right or not ?
Yes, that's right. Have you given it a try?
 
ronix
Member Candidate
Member Candidate
Topic Author
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: load balance withe 2 different WANs

Mon Nov 26, 2012 8:05 pm

ok, I will call the ISP to upgrade my WAN2 connection
then i will test it & feed you back ....

thank you for your help
 
Robotics909
just joined
Posts: 18
Joined: Wed Oct 31, 2012 5:14 pm

Re: load balance withe 2 different WANs

Fri Nov 30, 2012 4:18 pm

I hope your load balancing is working fine. Do u do any thing for the FTP. My load balancing is working fine. But when i try to upload something through ftp. Its drops the connection. After that i disable the one connection do the upload through the ftp.
 
ronix
Member Candidate
Member Candidate
Topic Author
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: load balance withe 2 different WANs

Sun Dec 02, 2012 1:41 pm

Dears....

I upgrade my bandwidth & editing the mangle rules...
tell now every thing is OK but I must Watching it for 24 to 48 hours...


Robotics909 : I did't use ftp, try to use dstnat rule in NAT

Who is online

Users browsing this forum: No registered users and 147 guests