Answer the question
In order to leave comments, you need to log in
Mikrotik, 3 providers, switching and separation
Mikrotik has 5 ports in total:
1 port - Provider 1
2 port - Provider 2
3 port - Provider 3 (backup)
4 port - Network 1 192.168.1.0
5 port - Network 2 192.168.2.0
1) On port 4, the network, with its own DHCP server on Mikrotik, they must go to the Internet through provider 1.
Port 5 also has a separate network with its own DHCP server and they must go to the Internet through provider 2.
2) 3 provider turns out to be a backup, if 1 or 2 fails, Mikrotik must switch the Internet on it, well, and then return everything to its place when the channel is restored.
While at least 1 point I'm trying to do.
Thanks for the help.
Solution here
Answer the question
In order to leave comments, you need to log in
here is the manual without using scripts wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting
well, the first point is the simplest - mark the packets and do srcnat with the IP of the desired provider.
the second point needs to be solved with scripts, there is no other way.
There is a lot of information, just learn how to use it:
lmgtfy.com/?q=mikrotik+%D0%B4%D0%B2%D0%B0+%D0%BF%D1%80%D0%BE%D0%B2%D0%B0%D0% B9%D0%B4%D0%B5%D1%80%D0%B0+%D0%BC%D0%B0%D1%80%D0%BA%D0%B8%D1%80%D0%BE%D0%B2% D0%BA%D0%B0
Thanks to Night_Snake for the PBR manual, everything worked out. Now I'm trying to complete step 2, switching to a backup provider.
Hello. I'm trying to make switching scripts, it doesn't work. I don’t even know where to dig…
www.tangarus.ru/159/avtomaticheskoe-pereklyuchenie-kanalov-na-mikrotik-routeros/
can you tell me what
Scripts make sense to steer only the 3rd provider. In the first two paragraphs, IMHO, it is worth making two bridges. 1 bridge = wan for the 1st provider + Lan for the first LAN. 2nd bridge = wan to the 2nd provider + Lan to the second LAN.
Everything is solved without scripts, by static routing, in the first paragraph mark the traffic, in the second paragraph in the route put the distance more than for the first and second providers. And the route for 3 providers will be inactive while the first two are active. A nuance in masquerade, it needs to be configured without an out interface - this is important!
And yes, I'm a necroposter =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question