I have a customer who will have 2 ISPs active.
They must mainly use ISP1, but ISP2 must be active and must be able to respond to traffic.
If ISP1 stops working, ISP2 should take all traffic.
I have tried to set up a failover as shown in this example:
https://help.mikrotik.com/docs/pages/vi ... d=26476608
I had problems with not getting any traffic out, but then I removed the routing table and mangle! and then failover worked.Traficc
Code: Select all
/routing/table
add fib name=to_ISP1
add fib name=to_ISP2
/ip/firewall/missing
add chain=output connection-state=new connection-mark=no-mark action=mark-connection new-connection-mark=ISP1_conn out-interface=ether1
add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1 out-interface=ether1
add chain=output connection-state=new connection-mark=no-mark action=mark-connection new-connection-mark=ISP2_conn out-interface=ether2
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2 out-interface=ether2
The reason they need this is because the plan is to put both ISP IP addresses in the DNS A-Record so that if one ISP drops out, the customers will not notice.
Can anyone provide some examples of how to set this up? Or do I have to use 2 routers?
ISP1 = DHCP Client
ISP2= pppoe, but I can set manual route, or change to static ip.
This was written in Norwegian in Google Translate, so all grammar may not be completely correct.