Community discussions

MikroTik App
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 84
Joined: Fri Nov 18, 2011 5:53 pm

routing via a specific wan not working

Sun Dec 11, 2016 9:34 pm

Hello all,

I am trying to use netwatch to monitor a WAN connection. To accomplish this I had the following configuration that used to work but now it does not.

1. I created a static route to (google dns) via WAN1
2. had a netwatch script that checks for connectivity

This worked like a champ but now, I just get a bunch of timeouts and host unreacheable when pinging.

Please help
Long time Member
Long time Member
Posts: 519
Joined: Mon Jun 16, 2014 6:26 pm
Location: Canada - Abbotsford

Re: routing via a specific wan not working

Fri Dec 16, 2016 11:47 am

Ah, your WAN1 must be offline :D

When using Tools > Ping and the response is host unreachable or destination unreachable, the host column should display the IP that is reporting the inability to route the packet. Could be wan1's IP?

Your static route entry should be, Gateway: <IP of WAN1 Gateway>

If your entry's gateway is WAN1 instead of WAN1's gateway IP, then you'll get timeouts and host unreachables. This is because when using an interface name, you are telling the router that 8,8,4,4 exists on that ethernet. So the router will do an ARP lookup on that network to see who has Nobody on that ethernet does.

If WAN1 has a dynamic IP, your gateway may change and thus invalidate your static route. You'll also get timeouts and unreachables in this case. You would need a script to frequently check if your WAN1 ip has changed, and update the static route with the new gateway IP of wan1.

Who is online

Users browsing this forum: complex1, Google [Bot], Lifz, mlow, romihg, Sharaf, snagles and 105 guests