Community discussions

MikroTik App
 
beepee
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Tue Sep 18, 2007 6:13 am

Load balancing over Two interface without Masqurading

Thu Aug 11, 2011 4:10 pm

Hi huys
Using the diagram below
I have router 1 & Router 2
Router 1 connects to the Internet while Router 2 connect to the rest of my network
The two Routers are connected to each other over 2-interfaces.
The Problem
I want 10.4.1.0/24 & 10.6.1.0/24 traffic to reach router 1 via 10.10.10.4/30 network while
10.5.1.0/24 reach Router1 via 10.10.10.8/30 network
Things i have tried
On Router 1, using static routing, i have specified which interface handles which subnet
On Router 2,
1 Mark packet from each subnet with a routing mark
2 Add a default route for each of the routing marks
I actually use this tutorial http://wiki.mikrotik.com/wiki/Load_Bala ... e_Gateways but I did not do the masqurading aspect. Maybe thats why the whole thing did not work.
Pls I need help, i must not masquerade because one of the interfaces on Router 1 runs Hotspot which needs Client IP.
Pls what else can I try.
You do not have the required permissions to view the files attached to this post.
 
User avatar
Davis
Member Candidate
Member Candidate
Posts: 117
Joined: Mon Aug 01, 2011 12:27 pm
Location: Latvia, Riga
Contact:

Re: Load balancing over Two interface without Masqurading

Thu Aug 11, 2011 6:41 pm

On Router 1:
add route to 10.4.1.0/24 with IP address of Router 2 in 10.10.10.4/30 subnet as gateway
add route to 10.6.1.0/24 with IP address of Router 2 in 10.10.10.4/30 subnet as gateway
add route to 10.5.1.0/24 with IP address of Router 2 in 10.10.10.8/30 subnet as gateway
On Router 2:
create routing rules by invoking these commands:
/ip route rule add action=lookup disabled=no src-address=10.4.1.0/24 table=via1010104
/ip route rule add action=lookup disabled=no src-address=10.6.1.0/24 table=via1010104
/ip route rule add action=lookup disabled=no src-address=10.5.1.0/24 table=via1010108
add default route with routing mark via1010104, with IP address of Router 1 in 10.10.10.4/30 subnet as gateway
add default route with routing mark via1010108, with IP address of Router 1 in 10.10.10.8/30 subnet as gateway

Afterwards you can use Packet Sniffer to ensure that everthing is router properly.
This configuration is without failover.
 
vdelarenal75
Frequent Visitor
Frequent Visitor
Posts: 70
Joined: Fri May 22, 2009 1:28 am

Re: Load balancing over Two interface without Masqurading

Wed Feb 01, 2012 10:13 pm

On Router 1:
add route to 10.4.1.0/24 with IP address of Router 2 in 10.10.10.4/30 subnet as gateway
add route to 10.6.1.0/24 with IP address of Router 2 in 10.10.10.4/30 subnet as gateway
add route to 10.5.1.0/24 with IP address of Router 2 in 10.10.10.8/30 subnet as gateway
On Router 2:
create routing rules by invoking these commands:
/ip route rule add action=lookup disabled=no src-address=10.4.1.0/24 table=via1010104
/ip route rule add action=lookup disabled=no src-address=10.6.1.0/24 table=via1010104
/ip route rule add action=lookup disabled=no src-address=10.5.1.0/24 table=via1010108
add default route with routing mark via1010104, with IP address of Router 1 in 10.10.10.4/30 subnet as gateway
add default route with routing mark via1010108, with IP address of Router 1 in 10.10.10.8/30 subnet as gateway

Afterwards you can use Packet Sniffer to ensure that everthing is router properly.
This configuration is without failover.
Hi, can you please explain to me whar does table=via1010104 or table=via1010108 mean?

Who is online

Users browsing this forum: Amazon [Bot], benbgg and 118 guests