Community discussions

MikroTik App
 
dakotabcn
newbie
Topic Author
Posts: 49
Joined: Thu Apr 21, 2016 11:16 pm

failover V7 no work

Wed Oct 26, 2022 9:28 am

Hello! I am implementing a failover on a client with routerOS v7, it has FW 7.6
I have followed this website adapting the IPs to those of my client, but I find that invalid appears in the routes section
https://help.mikrotik.com/docs/pages/vi ... d=26476608
this is my code:
note: ISP1 is a pppoe connection
/ip/firewall/nat
add chain=srcnat action=masquerade out-interface=ISP1
add chain=srcnat action=masquerade out-interface=ISP2

/routing/table
add fib name=to_ISP1
add fib name=to_ISP2

/ip/firewall/mangle
add chain=output connection-state=new connection-mark=no-mark action=mark-connection new-connection-mark=ISP1_conn out-interface=ISP1
add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1 out-interface=ISP1
add chain=output connection-state=new connection-mark=no-mark action=mark-connection new-connection-mark=ISP2_conn out-interface=ISP2
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2 out-interface=ISP2

/ip/route/
add dst-address=8.8.8.8 scope=10 gateway=80.24.xxx.xxxx
add dst-address=8.8.4.4 scope=10 gateway=192.168.xxx.xxx

/ip/route/
add distance=1 gateway=8.8.8.8 routing-table=to_ISP1 target-scope=11 check-gateway=ping
add distance=2 gateway=8.8.4.4 routing-table=to_ISP1 target-scope=11 check-gateway=ping

/ip/route/
add distance=1 gateway=8.8.4.4 routing-table=to_ISP2 target-scope=11 check-gateway=ping
add distance=2 gateway=8.8.8.8 routing-table=to_ISP2 target-scope=11 check-gateway=ping

/ip/route
add dst-address=8.8.8.8 gateway=80.24.xxx.xxx scope=10
add dst-address=208.67.222.222 gateway=80.24.xxx.xxx scope=10
add dst-address=8.8.4.4 gateway=192.168.xx.xxx scope=10
add dst-address=208.67.220.220 gateway=192.168.xxx.xxxx scope=10

/ip/route
add dst-address=10.10.10.1 gateway=8.8.8.8 scope=10 target-scope=11 check-gateway=ping
add dst-address=10.10.10.1 gateway=208.67.222.222 scope=10 target-scope=11 check-gateway=ping
add dst-address=10.20.20.2 gateway=8.8.4.4 scope=10 target-scope=11 check-gateway=ping
add dst-address=10.20.20.2 gateway=208.67.220.220 scope=10 target-scope=11 check-gateway=ping

/ip/route
add distance=1 gateway=10.10.10.1 routing-table=to_ISP1 target-scope=12
add distance=2 gateway=10.20.20.2 routing-table=to_ISP1 target-scope=12
add distance=1 gateway=10.20.20.2 routing-table=to_ISP2 target-scope=12
add distance=2 gateway=10.10.10.1 routing-table=to_ISP2 target-scope=12
What's wrong with me? I'm checking it and I can't find what's wrong
failover-nowork.png
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: Bing [Bot], gigabyte091, HugoCar, menyarito and 68 guests