Community discussions

MikroTik App
 
dionipe
just joined
Topic Author
Posts: 2
Joined: Fri Feb 12, 2010 12:11 pm

Load Balance PCC with Custom Chain

Wed Jun 22, 2011 2:24 pm

Mangle
/ip fi ma 
add chain=prerouting action=jump jump-target=PCC in-interface=ether5-local 
add chain=PCC action=mark-connection new-connection-mark=to_speedy1 \
passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0 comment="Mark-Connection Get PCC from Connetion 1"
add chain=PCC action=mark-connection new-connection-mark=to_speedy2 \ 
passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1 comment="Mark-Connection Get PCC from Connetion 2"
/ip fi ma
add chain=PCC action=mark-routing new-routing-mark=to_speedy1 passthrough=no connection-mark=to_speedy1 comment="Route to___Speedy1"
add chain=PCC action=mark-routing new-routing-mark=to_speedy2 passthrough=no connection-mark=to_speedy2 comment="Route to___Speedy2"
NAT (Masquerade)
/ip fi nat 
add chain=srcnat action=masquerade out-interface=eth-ppoe-modem2 
add chain=srcnat action=masquerade out-interface=eth-ppoe-modem1 
Route
/ip route
add gateway=eth-ppoe-modem1 comment="Default Gateway"
add gateway=eth-ppoe-modem1 routing-mark=to_speedy1
add gateway=eth-ppoe-modem1 routing-mark=to_speedy2
example Screenshoot
Image

thanks dionipe

Who is online

Users browsing this forum: No registered users and 19 guests