Answer the question
In order to leave comments, you need to log in
How to set up 2 provider channels on mikrotik with simultaneous availability of 2 interfaces?
Good afternoon. There are 2 providers on mikrotik, one main second backup. When 1 falls, 2 rises. Is it possible to make both providers available for accessing the address from the outside, at the moment when the first channel is active, the second is not available. I would like the main traffic to go through one channel, but to be able to access the second channel (for example, via rdp)
Answer the question
In order to leave comments, you need to log in
Mikrotik and two providers - only {+union+}, sensible and verified.
Mikrotik RouterOS; two providers - balancing, routing, firewall (without scripts).
Uniform distribution of channels of two providers and access to their local resources on the Mikrotik router
Universal script for switching 2 Internet channels Mikrotik
Reserve channel + Two providers - Mikrotik. Failover. Load Balancing . (Very clear, all options considered).
Organization of a backup communication channel without scripts.
Failsafe scenario
Two offices with two redundant channels, round-robin redundancy. - from here, there is an updated script in the text.
At the input of the interface, you need to mark the packets and send responses to the interface from which they came. I can’t say exactly how to do it, but it’s pretty easy to google.
Can!
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN1 new-connection-mark=cmISP1
add action=mark-connection chain=prerouting connection-mark=no-mark in- interface=WAN2 new-connection-mark=cmISP2
add action=mark-routing chain=prerouting connection-mark=cmISP1 new-routing-mark=rmISP1
add action=mark-routing chain=prerouting connection-mark=cmISP2 new-routing-mark =rmISP2
/ip route
add check-gateway=ping distance=1 gateway=1.1.1.1 routing-mark=rmISP1
add check-gateway=ping distance=1 gateway=2.2.2.1 routing-mark=rmISP2
add check-gateway=ping comment ="ISP1 default route" distance=1 gateway=1.1.1.1
add check-gateway=ping comment="ISP2 default route" distance=2 gateway=2.2.2.1
/ip route rule
add comment="Access to provider gateway only via corresponding interfaces to ensure ping check works properly" dst-address=1.1. 1.1/32 table=rmISP1
add dst-address=2.2.2.1/32 table=rmISP2
I don't promise that it will work right away, but that's the principle.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question