Hello
I have to use a gateway which is not on the local network (virtualized environment).
Local ip address is 46.105.62.97 (eth1)
Gateway address is 37.187.139.254, reachable via eth1.
So i put a route to 37.187.139.254 via eth1, then added default route via 37.187.139.254. Problem is that route is not active, marked as unreachable.. It is reachable.
How can i force that route to be active?
I understand that, but that kind of configuration works with Windows or Linux.. as long as you have a route to your gateway, you can use this gateway even if it’s not in the local LAN
Thanks mrz I’m afraid i’m not sure to fully understand your sentence, what do you mean by “adjusting”?
Here is my current routing table
> ip route print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 A S dst-address=0.0.0.0/0 gateway=37.187.139.254 gateway-status=37.187.139.254 reachable via ether1 distance=1 scope=30 target-scope=10
.... L2TP & EoIP routes...
20 ADC dst-address=37.187.139.254/32 pref-src=46.105.62.97 gateway=ether1 gateway-status=ether1 reachable distance=0 scope=10
If it’s for example, 30:
On that route, set scope to 64 and target scope also 64. Or try higher. Until it says “reachable recursive”.
Windows has automatic scope. Mikrotik does not. So funny. So we have to work extra and do it manually. But it can be dangerous, as you can cause loops.