cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
617
Views
0
Helpful
2
Replies

GRE tunnel with public dynamic IP

raphaelbraga
Level 1
Level 1

Hi, I recently configured a GRE tunnel between two networks. On one of two sides of the tunnel I have a router with a public IP which refreshes from time to time or when it reboots. I configured the other side of the tunnel with the command tunnel destination "hostname". I noticed that during the configuration, the hostname is resolved and what it is actually configured is the IP. So everytime the public IP is refreshed, the tunnel is closed because the tunnel destination address is wrong.

What is the ideal solution for this problem?

Thank you!

 

2 Replies 2

Use gre keep alive when the destination is not reachable the tunnel will be down automatic 

But this solution will also automatically recover the tunnel? Setting the new IP when it is refreshed?