Community discussions

MikroTik App
 
bouncer69
just joined
Topic Author
Posts: 7
Joined: Wed Sep 08, 2010 10:59 pm

Help need! Per traffic load balance

Sat Oct 02, 2010 10:41 pm

http://wiki.mikrotik.com/wiki/Per-Traff ... _Balancing

I have done all the instruction here they said but it is not working for me. If i try to ping anything from router giving me message "no route to host"

Any help would be apprecate
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Help need! Per traffic load balance

Sat Oct 02, 2010 10:46 pm

That means there's no route in the routing table for the target you are pinging.

That article only applies to traffic THROUGH the router (it marks in the prerouting chain, when you ping from the router those ICMP echo requests are in the output chain, which happens afterwards), and the only routes shown in the article are for packets with routing marks.

Install a default route ("/ip route add dst-address=0.0.0.0/0 gateway=gateway.IP.of.ISP") for all traffic not caught by the rules that mark packets for routing to fall through to. That includes pings from the router.

Read the packet flow page on the wiki until you understand how traffic flows through the router, the firewall filter and mangle manual pages also help. If you're going to route by policy it's important to understand what those rules are doing, and how they work.
 
bouncer69
just joined
Topic Author
Posts: 7
Joined: Wed Sep 08, 2010 10:59 pm

Re: Help need! Per traffic load balance

Sun Oct 03, 2010 8:27 pm

Thank you for quick help. I'll check the way you suggest.
 
bouncer69
just joined
Topic Author
Posts: 7
Joined: Wed Sep 08, 2010 10:59 pm

Re: Help need! Per traffic load balance

Mon Oct 04, 2010 4:04 pm

Here is my setup. After I setup default gateway still it is not working.

/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="HTTP traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="SSL traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="POP3 traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="SMTP traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="P2P traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="Unknown traffic" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.11.1 routing-mark="WAN - 01" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 routing-mark="WAN - 02" scope=255 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.12.1 scope=30 target-scope=10


/ip firewall mangle
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=WAN-01 passthrough=no src-address-list=WAN-01
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=WAN-02 passthrough=no src-address-list=WAN-02
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=80 new-routing-mark="HTTP traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=443 new-routing-mark="SSL traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=110 new-routing-mark="POP3 traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no dst-port=25 new-routing-mark="SMTP traffic" passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark="P2P traffic" p2p=all-p2p passthrough=no
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark="Unknown traffic" passthrough=no



/ip firewall nat
add action=masquerade chain=srcnat comment="Gateway 192.168.11.1/24" disabled=no out-interface=wan1 src-address-list=Allowed-Internet
add action=masquerade chain=srcnat comment="Gateway 192.168.12.1/24" disabled=no out-interface=wan2 src-address-list=Allowed-Internet
 
caspat
newbie
Posts: 48
Joined: Wed Apr 28, 2010 3:55 pm

Re: Help need! Per traffic load balance

Fri Jan 28, 2011 2:50 pm

Have you find a solution to your probleme? if yes can you share it?

Pat
 
faisalusuf
just joined
Posts: 14
Joined: Wed Aug 11, 2010 1:22 pm

Re: Help need! Per traffic load balance

Wed Oct 19, 2011 11:18 pm