<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 12/04/2009 02:34 PM, Tudod Ki wrote:
<blockquote cite="mid:980614.39306.qm@web114120.mail.gq1.yahoo.com"
 type="cite">
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;"
 valign="top">as we can do a check on e.g.: routerOS:<br>
        <br>
interface ethernet monitor ether1<br>
                 status: link-ok<br>
       auto-negotiation: done<br>
                   rate: 100Mbps<br>
            full-duplex: yes<br>
  default-cable-setting: standard<br>
        <br>
how could I check that is there a link under "Linux"? [to get info
about the cable - is it plugged in or not?]<br>
        <br>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
</blockquote>
ethtool eth0<br>
       or<br>
ethtool eth1<br>
<br>
Depending on the device name for your NIC.  Last line of the output
says if a link is detected or not.<br>
</body>
</html>