Reiniciar conexión PPPoE router WRT54G
De Reyesoft
Hay momentos en los que es necesario reiniciar la conexión del router a Internet. En caso lo utilizo para renovar mi IP.
Esta es una forma de hacerlo con el comando wget (Disponible en Unix, Linux, Ubuntu, etc; o en Windows descargándolo).
Para hacerlo debemos ejecutar:
wget 192.168.0.1/apply.cgi --http-user=USER --http-password=PASSWORD --post-data="submit_button=Status_Router&change_action=gozila_cgi&wan_proto=pppoe&submit_type=Disconnect_pppoe" wget 192.168.0.1/apply.cgi --http-user=USER --http-password=PASSWORD --post-data="submit_button=Status_Router&change_action=gozila_cgi&wan_proto=pppoe&submit_type=Connect_pppoe"
Listo! el router se ha reiniciado.
