Community discussions

MikroTik App
 
danieltnc1981
newbie
Topic Author
Posts: 32
Joined: Sun Jul 16, 2017 1:27 pm

FailOver Mikrotik

Wed May 10, 2023 11:50 pm

Good evening everyone
I have a problem
My failover doesn't work, or rather it works partially
Here is my configuration

WAN 1 - 192.168.1.X/24
WAN 2 - 192.168.220.X/24
LAN - 192.168.88.X

On WAN 1 I have an ADSL modem
On Wan 2 I have a 4g modem

These are the set routes

C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 AS ;;; Primary WAN1
0.0.0.0/0 8.8.8.8 1
1 SD 0.0.0.0/0 192.168.1.1 1
2S ;;; Secondary WAN2
0.0.0.0/0 192.168.220.1 2
3 AS ;;; Validate Primary
8.8.8.8/32 192.168.1.1 1
4 ADCs 192.168.1.0/24 192.168.1.9 ether1 0
5 ADC 192.168.88.0/24 192.168.88.1 bridge 0
6 ADCs 192.168.220.0/24 192.168.220.10 ether2 0

The problem is as follows

If I unplug the WAN 1 cable on the mikrotik manually then it automatically switches to WAN 2
If instead I disconnect the ADSL cable on the modem of wan 1 the switch does not work

Where am I wrong?



Looking forward to your suggestions
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: FailOver Mikrotik

Thu May 11, 2023 12:52 am

Is what I would attempt to config.............

/ip route
add distance=5 check-gateway=ping dst-address=0.0.0.0/0 gateway=8.8.8.8 routing-table=main scope=10 target-scope=12
add dst-address=8.8.8.8 gateway=192.168.1.1 routing-table=main scope=10 target-scope=11
add distance-10 dst-address=0.0.0.0/0 gateway=192.168.220.1 routing-table=main


As for your issue, concur it seems to make no sense. Either way the router is not getting a signal on the WAN port.

Who is online

Users browsing this forum: scoobyn8 and 47 guests