Network card cable connection query
Dan Track
dan.track at gmail.com
Thu Sep 25 11:04:04 UTC 2008
On Thu, Sep 25, 2008 at 11:29 AM, Alan Cox <alan at lxorguk.ukuu.org.uk> wrote:
> On Thu, 25 Sep 2008 11:15:56 +0100
> "Dan Track" <dan.track at gmail.com> wrote:
>
>> Hi
>>
>> Is there a way to identify whether a network card has a rj45 cable
>> plugged into it from linux?
>
> ethtool
> /sbin/ethtool eth0
> Settings for eth0:
> Supported ports: [ TP ]
> Supported link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Half 1000baseT/Full
> Supports auto-negotiation: Yes
> Advertised link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Half 1000baseT/Full
> Advertised auto-negotiation: Yes
> Speed: 1000Mb/s
> Duplex: Full
> Port: Twisted Pair
> PHYAD: 0
> Transceiver: internal
> Auto-negotiation: on
> Supports Wake-on: pg
> Wake-on: d
> Current message level: 0x000000ff (255)
> Link detected: yes
>
Thanks Alan, that was spot on. I assume the "link detected" means that
a cable is connected in.
Dan
More information about the users
mailing list