Community discussions

MikroTik App
 
alessandra
just joined
Topic Author
Posts: 2
Joined: Mon Oct 30, 2017 10:44 am

Two WAN

Mon Oct 30, 2017 11:17 am

Good morning to everyone,
I'm a beginner about mikrotik and I have a question that i don't succeed to resolve.
I have a Mikrotik switch of layer 3 and I have to use the device in this way:
two wan and two vlan respectevely linked as follow:
wan1 ->vlan1
wan2->vlan2
The problem is that the router chooses always one route to internet (wan1) while it would select wan1 for vlan1 and wan2 for vlan2.
How can I resolve this problem?
Thanks in advance
 
Anmentheros
just joined
Posts: 2
Joined: Mon Oct 30, 2017 12:01 pm
Location: Vienna
Contact:

Re: Two WAN

Mon Oct 30, 2017 12:47 pm

Hi,

i am not a guru, but this sound for me like a routing thing maybe someone can offer you a better solution but this is my first suggestion.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Two WAN

Mon Oct 30, 2017 1:27 pm

If you want to switch/bridge each wan with its vlan than there should be no routing involved at all. Hope this is the case. Otherwise forget the switch and make the mangle rules as the basis for routing. But then be sure your switch might have performance problems.
 
alessandra
just joined
Topic Author
Posts: 2
Joined: Mon Oct 30, 2017 10:44 am

Re: Two WAN

Mon Oct 30, 2017 3:34 pm

The model is CRS 125-24G-1S-RM. Can this model works as I have described in previous post?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Two WAN

Tue Oct 31, 2017 9:24 pm

Yes it can. Which of those two options is your case?
 
steinbergs
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Fri Sep 09, 2016 4:20 pm
Location: Riga, Latvija

Re: Two WAN

Wed Nov 01, 2017 7:17 pm

A simple example:
add action=mark-routing chain=prerouting new-routing-mark=wan2 passthrough=yes src-address=192.168.88.14
add dst-address=0.0.0.0/0 distance=1 gateway=123.123.123.123 routing-mark=wan2
add dst-address=0.0.0.0/0 distance=1 gateway=234.234.234.234

Who is online

Users browsing this forum: Bing [Bot], donkeyKong, GPH and 48 guests