11-04-2015 02:15 AM - edited 03-08-2019 02:34 AM
Hello,
I have a Cisco router in our office with a static IP address. In the other site I have a Mikrotik with a dynamic IP address.
If I configure this way it works:
interface Tunnel0
description Mikrotik tunnel
ip address 10.0.0.1 255.255.255.0
no shutdown
tunnel source Loopback0
tunnel destination 45.x.x.x
!
ip route 192.168.2.0 255.255.255.0 10.0.0.2
!
I can ping to other site LAN:
#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/40 ms
The problem is that in the other side the IP is dynamic, so I need to delete the "tunnel destination 45.x.x.x" line. This way it doesn't work:
#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
How could I configure a GRE tunnel with dynamic IP address in the client side?
Thanks and regards.
11-04-2015 06:39 AM
Hi,
few weeks ago I read about something similar (IPsec tunnel where one router has dynamic IP address).
Maybe this article will help you:
http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/936-cisco-router-vpn-dynamic-endpoint.html
Keep in mind that connection can be initiated only by router with dynamic IP address.
But I am not sure if it is possible with only GRE tunnel. Configuration of GRE tunnel require definition of source and destination. And destination must be reachable.
And DynDNS is probably unusable with regard on this.
11-04-2015 07:48 AM
Thanks for the link.
This article refers that all routers must be Cisco.
My dynamic IP routers are Mikrotiks.
Regards.
01-30-2018 08:10 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide