how to check link under Linux

Steve Berg sberg at mississippi.com
Fri Dec 4 21:46:58 UTC 2009


On 12/04/2009 02:34 PM, Tudod Ki wrote:
> as we can do a check on e.g.: routerOS:
>
> interface ethernet monitor ether1
>                  status: link-ok
>        auto-negotiation: done
>                    rate: 100Mbps
>             full-duplex: yes
>   default-cable-setting: standard
>
> how could I check that is there a link under "Linux"? [to get info 
> about the cable - is it plugged in or not?]
>
>
ethtool eth0
        or
ethtool eth1

Depending on the device name for your NIC.  Last line of the output says 
if a link is detected or not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20091204/6edcac08/attachment-0001.htm>


More information about the fedora-list mailing list