This is a reconnection script (external) for Zyxel routers.
Requeriments:
- A Zyxel modem / router.
- This modem/router must run ZynOs (command line interface) directly accesible via telnet.
- A Linux box, or a bash interpreter via Cygwin.
- The sleep, echo and telnet command.
This is the script:
Code:
#!/bin/bash
{ sleep 1 ; \
echo "PASSWORD" ; \
sleep 1 ; \
echo "poe drop poe0" ; \
sleep 1 ; \
echo "exit" ; \
sleep 1 ; } | telnet IP
Replace IP for the IP address of the Zyxel modem/router and PASSWORD for the password of the command line interface.