[plug] Unattended reset of ADSL modem
Matt Kemner
zombie at penguincare.com.au
Tue Feb 17 12:24:57 WST 2009
On Tue, 17 Feb 2009, quoth Steve Boak:
> My question is, how is this sort of problem handled in the commercial world
> where this type of downtime would be intolerable? I've thought of scripting
> an automatic reset through the modem control web page, or reinstating a
> dialup modem to get limited access, but what do other people do?
In the commercial world we use modems/routers that don't have this problem :)
I used to have these kinds of problems at home, with various different
modems - so I have various different methods of scripted modem reboot:
# via telnet (telnet password was "stm")
echo -e 'stm\nrestart'|/usr/bin/nc -t -w 1 192.168.1.1 23
OR
# via a serial cable (I think this was a dlink DSL300)
stty -F /dev/ttyS0 -crtscts
echo restart > /dev/ttyS0
OR
# via web page
/usr/bin/curl -d DiagResetADSL="Reset ADSL Line" http://admin:admin@192.168.1.254/Forms/DiagADSL_1
I can't remember which modem each of these commands was used for, but they
may point you in the right direction.
Combine that with a script that pings something on the other side of the
link, and runs the reset command if it fails.
When I switched to using a Dynalink RTA1025W at home I never had a
problem, it would show "ADSL" connection uptimes of several months at a
time - even with iiNet's "thrillseeker" mode.
And now that I'm using a cisco router of course I don't have any hassles
either, but that is kinda overkill for home use :)
- Matt
More information about the plug
mailing list