Is there any way to check the second “next hop” as a check to see if a route is up. Mikrotik has only “check gateway” option when defining a route, so it only checks the first next hop.
The company I work in has connection to two ISPs, ISP1 and ISP2. I want to use ISP1 by default, and to use ISP2 when ISP1 has problem. The modem connecting me to ISP1 is in route mode. so the “next hop” from Mikrotik, i.e. the modem, is always up regardless of ISP1 is up or down. So Mikrotik checking the “next hop” (the modem) can’t choose ISP2 when ISP1 is down…
Yes… It takes a bit of thinking to get your head around though.
Essentially, you create a route to the target gateway that’s two hops away and set the gateway for that route to be the device one hop away. You also set the scope for that route to be ‘10’.
Then you create a default route and make the gateway for that route the device two hops away. You also put check-gateway as ‘ping’.
From my setup:
Thanks Nick… I don’t understand “scope” and “target scope” concept yet, but I checked your solution and it works fine.
Thanks cbrown… I checked your solution and it works too.
Thanks again.
Why to check second next hop? Check any reliable ip address of internet and if unaccessible, switch the route. I have done it so. Remember, you need static route to checking address in order to be able to check it even all other traffic goes via isp2.