cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1571
Views
0
Helpful
3
Replies

Automatic reload if ping fails

sidp
Beginner
Beginner

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

--------------------------------------------

The Router restarts after 3 minutes if the IP is not reachable but after the reload it doesnt work anymore. And yes i did a write :-).

Maybe someone here can help me, thanks.

Kind regards

3 Replies 3

tmanito23
Beginner
Beginner

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.

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...

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 ...

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:

Recognize Your Peers