Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to disable a link on a cisco router but have it enable again automatically after a certain time, if i lose connectivity - is this possible to do?

share|improve this question

2 Answers 2

A very crude way to do this would be to save the running configuration, make the change and then set the router to reboot.* Many engineers use this method when working remotely to ensure that they can get back to the box is they accidentally break the way they're connected.

Use the following command to set a reboot in 5 minutes (I don't know what the max is, but it's always in minutes). And then use the second command to subsequently cancel it when you're happy.

Router# reload in 5

Router# reload cancel

Don't forget to save the running configuration when you're finished, if required.

*Edit: I've just re read your post and actually, I think you're doing exactly what I described in which case this is accepted practice and not crude as I initially posted. What would be crude (IMO) is using this as a way to automatically revert configuration in a weeks time or something!

share|improve this answer
thanks thats good to know but i'm wary of rebooting as it hasnt been down in 4 years! :O - There's no other way i guess? – jude Oct 25 '11 at 13:32
Not to my knowledge, but honestly, as long as you save the CURRENT running config to the startup config (I.e. copy running-config startup-config) then I seriously doubt you'll encounter any issues. – Dan Oct 25 '11 at 13:45
As an extra safety precaution, I tended to make a second (post-change) connection to the router, to issue the "reload cancel". That way I know that authentication still works. – Vatine Oct 26 '11 at 13:03

You can use the command scheduler in Cisco, KRON, to execute commands at certain given times.

Docs are on Ciscos website docs.

If you wish to run an interface shutdown / config change / no interface shutdown at the same time you can easily execute a stack of commands in a TCL script on the router without having to schedule or do anything special.

share|improve this answer
great thanks, i'll give it a try – jude Oct 26 '11 at 10:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.