I need some help to understand routing to be used with one L2TP/IPsec tunnel that I have setup.
MainRouter (192.168.1.1) --L2TP network 10.0.0.0/24-RemoteClient 192.168.88.0/24
ppp secret: name=work service=l2tp
Both Main Router and Client are Mikrotik
All connecting fine.
But when I try to reach a RDP (192.168.88.10) server at RemoteClient, I need to add a route to MainRouter, so that MainRouter clients know where to go.
I tried to use the IP that the tunnels gives, example 10.0.0.2 and all works fine, until tunnel goes down and up again and the IP did change to 10.0.0.3.
So I did look for an alternative way to set the route. In the MainRouter routing table I do see the VPN connected as this:
Dynamic dest-IP:10.0.0.3 (tunell ip) Gateway:<l2tp-work-1>
So I then added the route for 192.168.88.0/24 to <l2tp-work-1>
This seems to work fine all time, but where do the -1 comes from, and is this the best way to do it? What if it changes to -2...
How should I find out this before the router connected? It needed even to have the < > in the name.