Diagnose your Internet connection and try to investigate potential problem
This small script checks if you are connected to the Internet. And if not, it tries to diagnose where is a problem.
It checks router availability, DNS responses.
Run with git:
git clone https://github.com/vician/netcheck && netcheck/netcheck.sh
Run with wget
wget https://raw.githubusercontent.com/vician/netcheck/master/netcheck.sh && bash netcheck.sh