If used in l2tp client “add-default-route=yes”, then the routing table is not correctly created and VPN does not work (on ROS 39.3 everything ok).
Example:
ROS 6.40.8
l2tp client config:
[admin@Dom-3G-Router] > /interface l2tp-client print
Flags: X - disabled, R - running
0 R name="l2tp-vpn.site.local" max-mtu=1450 max-mru=1450 mrru=disabled connect-to=vpn.site.local user="derevna" password="fwefwe" profile=default-encryption
keepalive-timeout=10 use-ipsec=no ipsec-secret="" allow-fast-path=no add-default-route=yes default-route-distance=1 dial-on-demand=no allow=pap,chap,mschap1,mschap2
Routing table:
[admin@Dom-3G-Router] > /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 ADS dst-address=0.0.0.0/0 gateway=l2tp-vpn.site.local gateway-status=l2tp-vpn.site.local reachable distance=1 scope=30 target-scope=10
1 DS dst-address=0.0.0.0/0 gateway=ppp-out1 gateway-status=ppp-out1 reachable distance=2 scope=30 target-scope=10
...
3 A S dst-address=10.10.10.0/27 gateway=172.16.2.1 gateway-status=172.16.2.1 reachable via l2tp-vpn.site.local distance=1 scope=30 target-scope=10
...
5 ADC dst-address=10.112.112.173/32 pref-src=100.91.5.55 gateway=ppp-out1 gateway-status=ppp-out1 reachable distance=0 scope=10
6 DS dst-address=92.45.172.192/32 gateway=92.45.172.192 gateway-status=92.45.172.192 unreachable distance=0 scope=30 target-scope=10
...
10 ADC dst-address=172.16.2.1/32 pref-src=172.16.2.2 gateway=l2tp-vpn.site.local gateway-status=l2tp-vpn.site.local reachable distance=0 scope=10
...
Watch entry 6:
DS dst-address=92.45.172.192/32 gateway=92.45.172.192 gateway-status=92.45.172.192 unreachable
Wrong gateway is specified! IP - 92.45.172.192 is remote public IP address VPN (connect-to).
On ROS 6.39.3 correct gateway is specified:
[admin@Dom-3G-Router] > /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 ADS dst-address=0.0.0.0/0 gateway=172.16.2.1 gateway-status=172.16.2.1 reachable via l2tp-vpn.site.local distance=1 scope=30 target-scope=10
1 DS dst-address=0.0.0.0/0 gateway=10.112.112.196 gateway-status=10.112.112.196 reachable via ppp-out1 distance=2 scope=30 target-scope=10
...
3 A S dst-address=10.10.10.0/27 gateway=172.16.2.1 gateway-status=172.16.2.1 reachable via l2tp-vpn.site.local distance=1 scope=30 target-scope=10
...
5 ADC dst-address=10.112.112.196/32 pref-src=100.64.84.86 gateway=ppp-out1 gateway-status=ppp-out1 reachable distance=0 scope=10
6 ADS dst-address=92.45.172.192/32 gateway=10.112.112.196 gateway-status=10.112.112.196 reachable via ppp-out1 distance=0 scope=30 target-scope=10
...
9 ADC dst-address=172.16.2.1/32 pref-src=172.16.2.2 gateway=l2tp-vpn.site.local gateway-status=l2tp-vpn.site.local reachable distance=0 scope=10
...
Watch entry 6:
ADS dst-address=92.45.172.192/32 gateway=10.112.112.196 gateway-status=10.112.112.196 reachable via ppp-out1 distance=0 scope=30 target-scope=10
dst-address=92.45.172.192/32 is accessible via ppp-out1 connection!