Hi,
Trying to set up Netwatch for my LTE failover. It pings 1.1.1.1 and switches to LTE when the main connection fails. However, it continues to ping 1.1.1.1 through the LTE connection and mistakenly reports that the main route is fine, causing it to switch back to the main connection, which then fails to ping again. This results in an endless loop of switching between LTE and the main connection. I’ve set the Src. address in Netwatch to the IP of the main ISP, but it seems to ignore that setting. Below are my configuration and logs.
/interface lte
set [ find default-name=lte1 ] allow-roaming=no band=“” sms-read=no
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=pool1 ranges=192.168.xx.xx-192.168.xx.xx
/ip dhcp-server
add address-pool=pool1 interface=bridge name=defconf
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=lte1 list=WAN
add interface=ether1 list=WAN
/ip address
add address=103.95.xx.xx comment=WAN1 interface=ether1 network=103.95.xx.xx
add address=192.168.xx.xx/24 interface=bridge network=192.168.xx.xx
/ip dhcp-server network
add address=192.168.xx.xx/24 dns-server=192.168.xx.xx gateway=192.168.xx.xx netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip dns static
add address=192.168.xx.xx comment=defconf name=router.lan
/ip firewall nat
add action=masquerade chain=srcnat ipsec-policy=out,none out-interface-list=WAN
/ip route
add check-gateway=none comment=MAINROUTE disabled=no distance=1 dst-address=0.0.0.0/0 gateway=103.95.xx.xx pref-src=“” routing-table=main scope=30
suppress-hw-offload=no target-scope=10
/system clock
set time-zone-name=Australia/Brisbane
/system identity
set name=“4g backup”
/system logging
add topics=debug
/system note
set show-at-login=no
/tool netwatch
add disabled=no down-script=“/ip route disable [find comment="MAINROUTE"]\r
\n:log error "ISP1 is down"” host=1.1.1.1 http-codes=“” interval=7s src-address=103.95.xx.xx startup-delay=0s test-script=“” timeout=1s type=icmp
up-script=“/ip route enable [find comment="MAINROUTE"]\r
\n:log warning "ISP1 is up"”
/tool sniffer
set filter-interface=lte1