Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-13-2006, 07:26 PM   #1
LQ Newbie
Registered: Aug 2006
Location: Keokuk, IA
Distribution: Redhat Shrike
Posts: 1

Rep: Reputation: 0
Lightbulb How to reboot router/modem when network goes down.

Has anyone done a setup using software/hardware to monitor the internet connection through a router or modem and force a hardware reboot of the modem or router? My cable modem that supplies the internet connection for my server running Redhat occasionally goes down and requires that I power cycle it. Sometimes it's the router that requires the reboot. I've seen devices, though I can't seem to locate one right now, that will ping an IP address and power cycle whatever's plugged into it. The ping occurs at a settable interval and the duration of the power cycle is also settable. The company I work for uses equipment to do the same thing using Network Heartbeat with their Cisco routers. This is rather expensive. Surely there's a daemon that can run on the server and when eth0 loses IP or when the daemon can't ping out, it would send a signal on the RS232 or USB port to activate hardware to cause a reboot of the modem/router or both.

Thanks for anyone that can help.
Old 09-13-2006, 07:59 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 63
Couple of things come to mind. I have seen devices that controlled from an rs-232 connection to turn on or off power outlets. Not sure of a specfic item.

Other thought is use one of those X-10 units. Coonect X-10 products as needed and using some command line you can control X-10 modules. Using and X-10 module that plugs into the wall and then plug both router and modem into that. So with a cron script is run and a ping is not completed for a certain number times in a cetain period of time it will issue the off command to the X-10 module and then after say 30secs the on command is issued to the module to power up the modem and router.

Old 10-11-2007, 05:46 PM   #3
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Hi, I am trying to overcome the same problem. Did you find a solution? Did you use X10? Was it an easy setup?


network manager

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Router Crash, no reboot nde Linux - Networking 3 10-06-2005 03:09 PM
help me to set up a home network with the router/modem irena56 Linux - Networking 5 09-30-2005 04:26 PM
SUSE 9.2 detect my [B]ADSL USB-Ethernet Modem-Router [/B] as a [B]Dial up modem[/B]. myprecius Linux - Hardware 0 06-27-2005 10:21 AM
Connecting one modem-router for two computers over a network dushkinup General 1 03-06-2004 11:28 AM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 06:36 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration