[svlug] how to detect ethernet cable is plugged in

Walter Reed wreed at hubinternet.com
Thu May 1 10:45:16 PDT 2003


> mii-diag --status eth0
> 
> When you don't have a link, you'll find "Link status: not established" in
> the output, and "You have link beat, and everything is working OK" if you
> do.  (Of course, use whatever iface name you're monitoring, and check out
> the rest of mii-diag's options.)

FYI, Debian has something similar called "mii-tool".





More information about the svlug mailing list