cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5400
Views
0
Helpful
5
Replies

gre tunnel with dynamic IP

Haris P
Level 4
Level 4

Dear ,

I'm trying to create GRE tunnel between two Cisco 877 routers by using ddns

interface Tunnel1

ip address 10.10.10.1 255.255.255.252

tunnel source Dialer1

tunnel destination hat45.dnsalias.net

The domain name under hat45.dnsalias.net is resolving immediately to IP and when I do show run tunnel destination is showing me as IP address and this is making problem . Because remote end point for the tunnel is dynamic IP and it's changing everytime . I want to use tunnel destination as domain name and not as IP ? Is there is any way

Regards

5 Replies 5

michael.leblanc
Level 4
Level 4

I would assume that the IP address is changing frequently because you are not keeping the tunnel up.

Perhaps you could keep the tunnel up using GRE Keepalives.

e.g.:

interface Tunnel0

keepalive 5 4

The only time you would likely see a change in IP, would be following a power outage.

Not the perfect solution you are seeking, but it could significantly improve your situation.

hennigan
Level 1
Level 1

Try:

interface tunnel1

ip ddns update hat45.dnsalias.net

ip address 10.10.10.1 255.255.255.252

tunnel source Dialer1

tunnel destination hat45.dnsalias.net

Also search Cisco docs for "ip ddns" show and debug commands, options.

The issue is that when i type

" tunnel destination hat45.dnsalias.net " its translating to IP .

As i know with IPsec it's working ,but i want to user GRE

http://www.cisco.com/en/US/tech/tk583/tk372/technologies_configuration_example09186a00801dddbb.shtml

Regards,

Haris

Did you ever find a solution on that? i want to do exactly the same thing..

Was looking for something similar - ended up with an EEM script.

 

conf t
event manager session cli username "somelocalusername"
event manager applet Update-GRE-Tunnel
 event timer watchdog time 1800
 action 1.0 cli command "enable"
 action 2.0 cli command "config t"
 action 3.0 cli command "interface Tunnel1"
 action 4.0 cli command "tunnel destination hat45.dnsalias.net"
 action 6.0 cli command "end"
 action 7.0 cli command "wr"
!
end

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card