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
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.
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.
The model is CRS 125-24G-1S-RM. Can this model works as I have described in previous post?
Yes it can. Which of those two options is your case?
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