Page 1 of 1

No Load Balance! Have two uplinks. Two Lan blocks.

Posted: Sun Jul 03, 2016 9:54 pm
by mdsekawsar
Dear Concern,

I don't need loadbalance script. Its really very slow. My clients are disturbed. I have two uplinks. 

A. 192.168.16.2/30   WAN1
B. 192.168.17.2/30   WAN2

I have two LAN blocks.

A. 172.16.16.1/24  LAN1
B. 172.16.17.1/24  LAN2

Now I want, first LAN1 (172.16.16.1/24) block will get internet by first WAN1 (192.168.16.2/30) links and second LAN2 (172.16.17.1/24) block will get internet by second WAN2 (192.168.17.2/30) links. Is it possible to do it without BGP on mikrotik? If so, then how? All everything will be done in same mikrotik inside. Please help me to get solution for this issue.
Thanks in advance.


Md Sarwar E Kawsar

Re: No Load Balance! Have two uplinks. Two Lan blocks.

Posted: Wed Jul 06, 2016 5:08 am
by Ghaith93
Dear
you have to make to mangle and to route 

step 1
/ip firewall mangle
add chain=prerouting src-address=172.16.16.0/24 action=mark-routing  new-routing-mark=WAN1 passthrough=no
add chain=prerouting src-address=172.16.17.0/24 action=mark-routing  new-routing-mark=WAN2 passthrough=no
step 2
/ip route 
add gateway=192.168.16.1 routing-mark=WAN1[font=-apple-system, Helvetica Neue, Helvetica, sans-serif][/font]
add gateway=192.168.17.1 routing-mark=WAN2
done