cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3023
Views
5
Helpful
3
Replies

VPN GRE with dynamic IP in client side

josulinea3000
Level 1
Level 1

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.

3 Replies 3

Milos Megis
Level 3
Level 3

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.

Thanks for the link.

This article refers that all routers must be Cisco.

My dynamic IP routers are Mikrotiks.

Regards.

Thanks for the link
Very helpful
Review Cisco Networking products for a $25 gift card