Community discussions

MikroTik App
 
davizo70
newbie
Topic Author
Posts: 35
Joined: Sun Apr 10, 2011 10:58 pm

Automatically restart router

Wed Feb 27, 2013 8:49 pm

Hello,
is it possible to make mikrotik router restart if it fails to ping its gateway?
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 140
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Automatically restart router

Wed Feb 27, 2013 8:54 pm

/system watchdog set watch-address=ip.address.goes.here
 
n21roadie
Forum Guru
Forum Guru
Posts: 1949
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Re: Automatically restart router

Thu Feb 28, 2013 1:26 am

I accidently setup netwatch to ping google every 10mins and reboot if it cannot ping this address but forgot to apply a time delay on router reboot ( :delay 3m ) before the netwatch would run & ended up with a reboot loop , had to take down effected routers and do a reset ?
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 140
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Automatically restart router

Thu Feb 28, 2013 8:45 am

Using my example above, this is not a concern as Watchdog has a built in delay setting which defaults to 5 minutes if not specified.