I have two Gateways.On LAN side, both gateways are always accessible, so the check-gateway=ping doesn’t work for me to select right route. What I want to do is to check, if gateway has access to the internet.
Simple solution would be nslookup check on each gateway, how can that be implemented in RouterOS, instead of ping test to gateway’s LAN IP.
Ping check isn’t suitable form me, because each Client/gateway is accessible from RouterOS and each ISP gateway is accessible from the internet.
Out of RouterOS, I want to send nslookup to each client/gateway DNS server, that would solve my case.
I have problem with my current configuration with dual wan, because it’s not working right if one of my gateways doesn’t have connection to internet, so I would need to check connectivity to some public servers for example 8.8.8.8 to check if WAN1 and WAN2 have connection to the internet, not just checking if WANs are connected to gateways.
I have messed with my configuration on remote location and it doesn’t work at all now. I still have ssh connectivity to mikrotik router, and I asking for help if someone could point me or paste working configuration for this situation:
I have two gateways, which have public IP assigned by DHCP server and are connected to mikrotik on WAN1 the first gateway and on WAN2 the second. All I want to do is simple failover not load balancing, with WAN1 as priority. I have one server on LAN and dynDNS rOS 5.x script running on mikrotik, my clients on LAN are double NAT-ed and I am searching for some console commands which could suit my situation, I have to check some public IP for internet connectivity not just each gateway.
I have tried different things found on wiki, without success. On my device I heva rOS 5.17 installed.