I have a Linksys Router with dd-wrt installed on. Due to some problems, I would like to periodically reboot the router (let's say at 0:00 everyday). How would I do that?
15 Answers
dd-wrt has a scheduled reboot feature built into the firmware. Have a look at Administration >> Keep Alive >> Scheduled Reboot. Make sure cron is turned on at Administration >> Management >> Cron.
1[if scheduled reboot does not work]
If you have enabled ssh-server on (I don't use dd-wrt, not sure if its enabled by default), you can reboot using following command
ssh root@192.168.1.1 rebootYou can look at this page to configure SSH public-private keys, so that you don't have to login everytime. And remember you should be running ssh-agent/putty-agent whereever your login from.
On Linux use cron to schedule reboot, and windows use Windows-Scheduler to execute command using putty.
1You will have to create a cronjob for this.
Log on with ssh or telnet
Create a crontab by running:
# nvram set cron_jobs="00 00 * * * root reboot"Commit the changes so they're still there after the first boot:
# nvram commit 2 I have a Linksys WRT-54GL running DD-WRT and have the same requirement. I've found that the scheduled reboot doesn't work so put a timer on the power outlet. Get a digital one so you can set the downtime to be 1 minute at midnight and you have a scheduled reboot.
3There are low tech solutions also. You can use a light timer such as this. They also make digital ones that are more customizable.
FYI - taken from my answer to