01-20-2016 02:42 AM - edited 03-05-2019 03:09 AM
Hello
I try to configure my Router 887VA to automaticly reload if an IP-Adress is not reachable. I tried the following configuration:
--------------------------------------------
ROUTER#conf t
ROUTER(config)#ip sla 1
ROUTER(config-ip-sla)#icmp-echo 10.10.10.2
ROUTER(config-ip-sla)#exit
ROUTER(config)#ip sla schedule 1 life forever start-time now ageout 900
ROUTER(config)#track 1 ip sla 1
ROUTER(config-track)#delay down 180
ROUTER(config-track)#exit
ROUTER(config)#event manager applet ping-failure
ROUTER(config-applet)#event track 1 state down
ROUTER(config-applet)#action 1 syslog msg "Ping Failure, Rebooting!"
ROUTER(config-applet)#action 2 reload
ROUTER(config-applet)#exit
ROUTER#wr
--------------------------------------------
01-20-2016 05:49 AM
Syslog message after the 10.10.10.2 is up
*Jan 20 13:44:54.068: %TRACK-6-STATE: 1 ip sla 1 reachability Down -> Up
your config provided works fine in me.
01-20-2016 05:58 AM
Thanks for testing.
For me it worked only one time. For testing i didnt reconnect the device with the IP 10.10.10.2 and the router didn't try to restart again...
01-21-2016 10:32 PM
Haven't tested, but I assume the down event doesn't fire if the track state hasn't been up first ... you might be able to fix this with another event that reloads the router after a certain time after startup ... e.g. by setting a "reload in ..." upon startup, then do a "reload cancel" on an "up" event of the track ...
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