Community discussions

MikroTik App
 
yuridee
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 99
Joined: Wed Jun 27, 2012 5:32 am

load balance doesn't work on v6.7, help!

Tue May 27, 2014 6:23 pm

Hello,
I can't find what's wrong with my config, only WAN1 shows active in /ip route
/ip firewall mangle
#   manually force local traffic to connected networks to stay in the main routing table
add action=accept chain=prerouting disabled=no dst-address=192.168.201.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.202.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.203.0/24
#  rules that will sort the traffic into streams.
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:3/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:3/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no dst-address-type=!local \
in-interface=ether5 new-connection-mark=WAN3 passthrough=yes per-connection-classifier=both-addresses:3/2
#  mangles to add the routing marks to the packets based on the connection mark in the PREROUTING CHAIN
add action=mark-routing chain=prerouting connection-mark=WAN1 disabled=no in-interface=ether5 \
new-routing-mark=ether1-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2 disabled=no in-interface=ether5 \
new-routing-mark=ether2-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN3 disabled=no in-interface=ether5 \
new-routing-mark=ether3-mark passthrough=yes
add action=mark-routing chain=output connection-mark=WAN1 disabled=no new-routing-mark=ether1-mark passthrough=yes
add action=mark-routing chain=output connection-mark=WAN2 disabled=no new-routing-mark=ether2-mark passthrough=yes
add action=mark-routing chain=output connection-mark=WAN3 disabled=no new-routing-mark=ether3-mark passthrough=yes
#  Identify which WAN interface the traffic came in and mark the connections appropriately.
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
    in-interface=ether1 new-connection-mark=WAN1 passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
    in-interface=ether2 new-connection-mark=WAN2 passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=no \
    in-interface=ether3 new-connection-mark=WAN3 passthrough=yes

/ ip route
#  Create the unmarked default routes.
add dst-address=0.0.0.0/0 gateway=192.168.201.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.202.1 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.203.1 distance=3 check-gateway=ping
#  Create the marked default routes
add dst-address=0.0.0.0/0 gateway=192.168.201.1 routing-mark=ether1-mark check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.202.1 routing-mark=ether2-mark check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.203.1 routing-mark=ether3-mark check-gateway=ping
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12438
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: load balance doesn't work on v6.7, help!

Tue May 27, 2014 8:16 pm

/ ip route
#  Create the unmarked default routes.
add dst-address=0.0.0.0/0 gateway=192.168.201.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.202.1 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.203.1 distance=3 check-gateway=ping
Only one of this can be active, the one with lower distance.
What you get is the normality.
Only one DEFAULT route with 0.0.0.0/0 can be active.

You can not balance the DEFAULT (no-mark) traffic.
The DEFAULT traffic can go out only from one route.
 
yuridee
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 99
Joined: Wed Jun 27, 2012 5:32 am

Re: load balance doesn't work on v6.7, help!

Wed May 28, 2014 2:12 am

Rextended, thank you for prompt reply. Actually, today test showed me somewhat balanced traffic, though WAN1 busier then the other two.

By any chance would you happen to know how can I split my lan to two networks 192.168.10.0/24 and 192.168.20.0/24 with 20%/80% of total wan1-3 capacity

Y
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12438
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: load balance doesn't work on v6.7, help!

Wed May 28, 2014 2:59 am

Read the slide of mum on venice 2014 mum.mikrotik.com ;)
 
yuridee
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 99
Joined: Wed Jun 27, 2012 5:32 am

Re: load balance doesn't work on v6.7, help!

Wed May 28, 2014 2:17 pm

Read the slide of mum on venice 2014 mum.mikrotik.com ;)
Probably because was late at night, but I can't find it :(
Looked in here: http://wiki.mikrotik.com/wiki/MUM_2014_IT

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], k6ccc, sindy and 31 guests