Community discussions

MikroTik App
 
monkeybike
newbie
Topic Author
Posts: 36
Joined: Tue May 12, 2015 6:39 pm

2 LANs with 2 WANS

Fri Nov 04, 2016 10:12 pm

Hi All,

Is there a really simple way to say if traffic want to go out to the internet and comes from 192.168.1.x it goes out WAN1

Then if it comes from 192.168.x it goes out WAN2

Everything I can find involves mangles, marking, lists etc. Surely there is a really easy way to do it.

Regards

Richard
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: 2 LANs with 2 WANS

Fri Nov 04, 2016 10:59 pm

The basic config is two mangle rules and two items in routing table, that's really simple way for you. Sure, I can imagine some even simpler high-level interface made specifically for people who need two LANs with two WANs, where you'd just enter addresses and it would set everything under the hood. But that's not what RouterOS does.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: 2 LANs with 2 WANS

Sat Nov 05, 2016 7:55 am

Two separate routers is an easy option also. :-)
 
User avatar
NiK
Trainer
Trainer
Posts: 23
Joined: Mon Apr 06, 2015 12:38 pm

Re: 2 LANs with 2 WANS

Sat Nov 05, 2016 11:28 am

The easiest way is:
1) create second routing table for routing through WAN2
2) create route rule that uses second routing table for some trafic (see policy-based routing - /ip route rule)
 
monkeybike
newbie
Topic Author
Posts: 36
Joined: Tue May 12, 2015 6:39 pm

Re: 2 LANs with 2 WANS

Mon Nov 07, 2016 11:35 am

Thanks for answers, looks like then I do need to add marking rules to route. Was looking for a simple way of just writing a rule to send via a specific gateway based on source IP.

Will try the routing mark method.

Richard

Who is online

Users browsing this forum: baks, daaaaang, Elvis1991 and 101 guests