A
A
Alex2Fast2016-06-22 21:28:10
Mikrotik
Alex2Fast, 2016-06-22 21:28:10

How to route 2 LANs through 2 additional WANs with the same gateway IP in mikrotik?

Hello !
Tell a newbie!
There was a task for a working Mikrotik to fasten several more WANs from one provider, with different IPs, and everyone has one gateway.
The task is to give access to the Internet to all networks through different IPs
WAN_2 >
LAN_2 172.16.
The first local network as I went and walks through the old gateway
tuned here so
WAN_1 80.80.80.80/30 Gateway1 80.80.80.81 Ether2
WAN_2 70.70.70.70/19 Gateway2 70.70.64.1 Ether3
WAN_3 70.70.95.250/19 Gateway2 70.70.64.1 Ether4
LAN_1 192.168. 1.0/24 ether5
LAN_2 172.16.0.1/24 ether7
LAN_3 172.16.1.0/24 ether8
/ip firewall mangle add action=mark-routing chain=prerouting in-interface=ether7 new-routing-mark=to_Wan2
/ip firewall mangle add action=mark-routing chain=prerouting in-interface=ether8 new-routing-mark=to_Wan3
/ip route add distance=1 gateway=GATEWAY1
/ip route add distance=2 gateway=GATEWAY2%ethr3 routing-mark=to_Wan2
/ip route add distance=1 gateway=GATEWAY2%ethr4 routing-mark=to_Wan3
ping GATEWAY2
ping
GATEWAY2 through ethr3
does not work
ping GATEWAY2 via ethr4
ping works
ping 8.8.8.8 through any WAN works
Outside Mikrotik pings and you can access the RDP server from any external IP
What could be the problem ? For a long time I twisted different manuals and tried different settings, in this version something pinged and it worked, the Internet stopped falling in LAN, that's just with jambs.
Maybe I’m not building it right, push me in the right direction
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Romanov, 2016-06-22
@moneron89

Because you have the same gateway on multiple interfaces, use VRF. The basis can be found in this article . And how to set up Load Balancing and Failover with multiwan - in this article . And do k-k-k-combo!!!
Good luck :)

A
Alex2Fast, 2016-06-22
@Alex2Fast

I don't need balancing, I just need to send one network to one channel and another to another with the same gateway IP and that's it. Is that possible ?
Read about VRF. Thanks for the tip.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question