Community discussions

MikroTik App
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

PCC Load balancing - Help Following the Wiki

Sat Nov 12, 2011 8:33 am

My System: RB433 v5.8
i am trying to follow this Load Balancing example:http://wiki.mikrotik.com/wiki/Manual:PCC
But it just doesnt work. After i do the config i try to access the internet, i cannot, unless i specify a default route (without routing marks)

Heres my config
[admin@MikroTik]
/ip address print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                      
 0   ;;; To use Router 10.0.11.22 as a Route (gateway)
     10.0.11.1/24       10.0.11.0       ether1                         
 1   ;;; To use Router 10.0.12.27 as a Route (gateway)
     10.0.12.1/24       10.0.12.0       ether2                         
 2   ;;; All PPPOE connections comes on here
     192.168.0.1/32     192.168.0.1     bridge1                           
10   ;;; To be able to connect to This MikroTik = 10.0.4.1 
     10.0.4.1/24        10.0.4.0        ether1                         


/ip firewall mangle> print
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=prerouting action=accept dst-address=10.0.11.0/24 
     in-interface=bridge1 

 1   chain=prerouting action=accept dst-address=10.0.20.0/24 
     in-interface=bridge1 

 2   chain=prerouting action=mark-connection 
     new-connection-mark=ISP1_conn passthrough=yes 
     dst-address-type=!local in-interface=bridge1 
     connection-mark=no-mark 
     per-connection-classifier=both-addresses:2/0 

 3   chain=prerouting action=mark-connection 
     new-connection-mark=ISP2_conn passthrough=yes 
     dst-address-type=!local in-interface=bridge1 
     connection-mark=no-mark 
     per-connection-classifier=both-addresses:2/1 

 4   chain=prerouting action=mark-routing new-routing-mark=to_ISP1 
     passthrough=yes in-interface=bridge1 connection-mark=ISP1_conn 

 5   chain=prerouting action=mark-routing new-routing-mark=to_ISP2 
     passthrough=yes in-interface=bridge1 connection-mark=ISP2_conn 

[admin@MikroTik] /ip route> export
# nov/12/2011 08:29:05 by RouterOS 5.8
# software id = 6S61-VQPK
#
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.11.22 routing-mark=to_ISP1 \
    scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.20.1 routing-mark=to_ISP2 \
    scope=30 target-scope=10

[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 

 2   chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-port=80

(I did try disabling this rule:
2   chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-port=80 

so that it does not go thru the proxy. but still, same issue, cant access internet.
 
01101110110110
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Thu Apr 12, 2012 8:19 pm

Re: PCC Load balancing - Help Following the Wiki

Fri Jul 20, 2012 12:47 am

add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.20.1 routing-mark=to_ISP2 \
scope=30 target-scope=10
where does this IP 10.0.20.1 come from ? There are 2 interfaces, pointed to 10.0.11.0/24 and 10.0.12.0/24, nothing about 10.0.20.0

Who is online

Users browsing this forum: freezerfcb and 14 guests