Hi, I have created a GRE tunnel between a Cisco 2800 Router and Teltonia RUT240. The RUT240 doesn't support either GRE over IPSEC or DMVPN. The problem that I'm facing is that on the remote side (the RUT240) I have a dynamic IP, which is frequently updated, which is resolver by a DDNS hostname. I found researching on web, that the better solution for this scenario is to use EEM script and IS SLA (please corret me if I'm wrong). Here a part of what is currrently in my config file:
track 125 ip sla 125 reachability
delay down 60 up 30
ip sla 125
ip sla schedule 125 life forever start-time now
event manager applet Refresh-DDNS
event track 125 state down
action 01.0 cli command "enable"
action 02.0 cli command "conf t"
action 03.0 cli command "int tunn1"
action 04.0 cli command "no tunnel destination"
action 05.0 cli command "tunnel destination host2remote.ddns.net"
action 06.0 cli command "exit"
action 07.0 cli command "no ip sla 125"
action 08.0 cli command "ip sla 125"
action 09.0 cli command "icmp-echo host2remote.ddns.net"
action 10.0 cli command "threshold 2500"
action 11.0 cli command "timeout 2500"
action 12.0 cli command "frequency 60"
action 12.0 cli command "exit"
action 13.0 cli command "no ip sla schedule 125 life forever start-time now"
action 14.0 cli command "ip sla schedule 125 life forever start-time now"
action 15.0 cli command "no track 125 ip sla 125 reachability"
action 16.0 cli command "track 125 ip sla 125 reachability"
action 17.0 cli command "delay down 60 up 30"
The tracking is working fine and the event manager is called as soon as I got 2 failures. The problem is that after the second failure, the event manager is not called again, so if the dynamic IP is not reachable on the first try, I will not be able to update the IP, and the failures keep increasing.
How can I fix the code so the event manager keeps trying to refresh the IP on each failure?
I'm not sure if I was clear, but if something is missing for the proper understading of the scenario, please let me know.
Hello everybody,I am newbies with setting cisco switch.I downloaded Catalyst 2960-X Switch Getting Started Guide but I can't access to Device Manager - Express Setup according to guide.If you follow the instructions and try to keep all LEDs (exc...
To participate in this event, please use the button to ask your questions
Ask questions from Monday, March 8 to Friday, March 19, 2021
All the knowledge of these four experts at your disposal!
Cisco Software-Defined Wide Area Network (SD-WAN) provid...
Community Live- ISR1100X-4G and ISR1100X-6G Platform Overview and Architecture
(Live event - Tuesday, 23 March, 2021 at 10:00 am Pacific/ 1:00 pm Eastern / 7:00 pm Paris)-
This event will have place on Tuesday 23rd, March 2021 at 10:00 hrs PDT&...
Cisco Secure Network Access is helping IT to bridge the gap between what is essential to the business and what the network delivers and to build the next-generation campus network for an unplugged and uninterrupted experience.
Learn more about how these w...
(view in My Videos)
Community Live- New Additions to the Catalyst 8000 Family
(Live event - Tuesday, 23 February, 2021 at 10:00 am Pacific/ 1:00 pm Eastern / 7:00 pm Paris)-
This event had place on Tuesday 23rd, February 2021 at 10:00 hrs PDT...