Community discussions

MikroTik App
 
zuko
just joined
Topic Author
Posts: 1
Joined: Tue Jun 02, 2015 10:10 pm

A configuration for two local networks and two gateways of the same Internet Provider

Tue Jun 02, 2015 10:17 pm

Hello,

We are unable to properly configure our MikroTik router (RB750GL) for the following configuration.

We have two LANs:

LAN1: 192.168.10.0/24
LAN2: 192.168.20.0/24

We have two WAN ports connected to the same ISP. It provides just one gateway:

10.0.0.1

We are allowed to use two static WAN IPs:

10.0.0.10
10.0.0.20

We need to route LAN1 from IP:10.0.0.10 and LAN2 from IP:10.0.0.20.

Please, advise. Don't ask us to read manuals because they do not apply to our networking configuration.
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1075
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: A configuration for two local networks and two gateways of the same Internet Provider

Wed Jun 03, 2015 12:22 pm

/ip firewall mangle 
add chain=prerouting src-address=192.168.10.0/24 action=mark-connection new-connection-mark=conn1
add chain=prerouting connection-mark=conn1 action=mark-routing new-routing-mark=conn1 passthrough=no
Same for network 192.168.20.0/24
/ip route
add dst-address=0.0.0.0/0 routing-mark=conn1 gateway=WAN1
The idea here is to put the interface as gateway instead of IP

Who is online

Users browsing this forum: uxertxo and 80 guests