forked from eworm-de/routeros-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFailover Routing Examples.rsc
25 lines (23 loc) · 1.67 KB
/
Failover Routing Examples.rsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Thus a very basic Recursive Dual WAN failover would look like thus.....
/ip route
add check-gateway=ping distance=3 dst-address=0.0.0.0/0 gateway=1.0.0.1 scope=10 target-scope=12
add distance=3 dst-address=1.0.0.1/32 gateway=10.254.254.1 scope=10 target-scope=11
add comment=SecondaryISP distance=10 dst-address=0.0.0.0/0 gateway=10.254.253.1 scope=10 target-scope=30
# Thus a Recursive Dual WAN failover using TWO external DNS sites to check connectivity in a simple FLAT approach would look like this....
/ip route
add check-gateway=ping distance=3 dst-address=0.0.0.0/0 gateway=1.0.0.1 scope=10 target-scope=12
add check-gateway=ping distance=4 dst-address=0.0.0.0/0 gateway=9.9.9.9 scope=10 target-scope=12
add distance=3 dst-address=1.0.0.1/32 gateway=10.254.254.1 scope=10 target-scope=11
add distance=4 dst-address=9.9.9.9/32 gateway=10.254.254.1 scope=10 target-scope=11
add comment=SecondaryISP distance=10 dst-address=0.0.0.0/0 gateway=10.254.253.1 scope=10 target-scope=30
# Thus a Recursive Dual WAN failover using TWO external DNS sites to check connectivity using the LAYERED or NESTED approach would look like this....
/ip route
add dst-address=0.0.0.0/0 gateway=10.10.10.10 scope=12 target-scope=14
# +++++++++++++++++
add check-gateway=ping dst-address=10.10.10.10/32 gateway=1.0.0.1 scope=14 target-scope=13
add dst-address=1.0.0.1/32 gateway=10.254.254.1 scope=13 target-scope=12
# +++++++++++++++++
add check-gateway=ping dst-address=10.10.10.10/32 gateway=9.9.9.9 scope=14 target-scope=13
add dst-address=9.9.9.9/32 gateway=10.254.254.1 scope=13 target-scope=12
# +++++++++++++++++
add comment=SecondaryISP distance=10 dst-address=0.0.0.0/0 gateway=10.254.253.1 scope=10 target-scope=30