Modem Reconnect

The modem reconnect works different for each operating system

Windows

For windows, the reconnect can be performed with the integrated batch reconnect

rasdial "CONECTIONNAME" /disconnect
ping www.google.de -n 8
rasdial "CONECTIONNAME" USERNAME PASSWORD

Enter “cmd /c” as interpreter

Linux and MACOS

The tools pon and poff have to be added to /etc/sudoers

sudo su
echo "username ALL=(ALL) NOPASSWD: /usr/bin/pon">>/etc/sudoers
echo "username ALL=(ALL) NOPASSWD: /usr/bin/poff">>/etc/sudoers

batch reconnect to perform the following commands.

sudo poff dsl-provider
sudo pon dsl-provider
knowledge/wiki/reconnect/modem.txt · Last modified: 2016/06/27 16:34 (external edit)