06-18-2008 04:58 AM - edited 03-05-2019 11:42 PM
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
06-18-2008 02:38 PM
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.
06-18-2008 03:07 PM
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.
06-18-2008 10:56 PM
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
08-06-2009 09:13 AM
Did you ever find a solution on that? i want to do exactly the same thing..
02-08-2019 09:16 AM - edited 02-08-2019 09:18 AM
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
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