Verificar Conexion
 #!/bin/bash
 ### reinicia la red si alguno de los ips no esta visible

 if ping -c 1 -W 1 192.168.1.1
 then
   echo " "
  else 
     /etc/init.d/network restart
 fi

 if ping -c 1 -W 1 192.168.1.2
 then
   echo " "
  else 
     /etc/init.d/network restart
 fi
Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.