There is an empyric way of obtain this info.
you must run entstat -dr ent0|grep 'No Carrier Sense' and note the number
Then you have to ping the default gateway (if you got some answer obviously the link is up but the gateway could be down)
If you execute entstat -dr ent0 the number of 'No Carrier Sense' should be the same of the previous run, otherwise you aren't connected
Thanks sbix! It seems to be a good idea. Anyhow, do you know the interval between link tests performed?
Well, I'm going to check it on a working box. I mean: device reset - cable unplug - wait for a certain amount of time - cable replug - check number of 'No carrier sense' errors.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.