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.