terminal tool to check internet connection when disconnection
by andrewysk from LinuxQuestions.org on (#5B3FY)
Hii
I would like to know is there any terminal tool that i can use to run in terminal constantly be it internet is ok or internet got disconnected ?
Recently i have got internet disconnection issue with my service provider. I often found out my router reset itself and it is trying to connect or something.. hence lost lan and internet. sometime got lan but no internet.
I tried these 2 cli tools when internet disconnected:
ping www.google.com
and
Mtr www.google.com
but, these tools can't help me to know when internet is again connected .. because i saw router signal Indicator is normal, but both ping and mtr keeps showing as not connected... until i cancel and rerun the command.. then it shows it is connected..
if i need to rerun when internet is back to normal, then, those tools are useless in this case.
Is there such tool ?
thx


I would like to know is there any terminal tool that i can use to run in terminal constantly be it internet is ok or internet got disconnected ?
Recently i have got internet disconnection issue with my service provider. I often found out my router reset itself and it is trying to connect or something.. hence lost lan and internet. sometime got lan but no internet.
I tried these 2 cli tools when internet disconnected:
ping www.google.com
and
Mtr www.google.com
but, these tools can't help me to know when internet is again connected .. because i saw router signal Indicator is normal, but both ping and mtr keeps showing as not connected... until i cancel and rerun the command.. then it shows it is connected..
if i need to rerun when internet is back to normal, then, those tools are useless in this case.
Is there such tool ?
thx