[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

detect/probe the physical connected state of a network cable



Hi,

Once I disabled the wireless and plugged in the cable.

Seems it's not sensitive. I needed plug out and re-plug in,

Which commands can be used to let the laptop to detect the connection of cable?

I tried the

# ethtool eth0
Settings for eth0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Half 1000baseT/Full
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	                        1000baseT/Half 1000baseT/Full
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Speed: 100Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: Unknown
	Supports Wake-on: g
	Wake-on: d
	Current message level: 0x000000ff (255)
			       drv probe link timer ifdown ifup rx_err tx_err
	Link detected: yes

Does it need time to react?

The only way I tested cable work or not by seeing whether the webpage
can be opened or not.

nmcli nm
RUNNING         STATE           WIFI-HARDWARE   WIFI
WWAN-HARDWARE   WWAN
running         disconnected    enabled         enabled    enabled
    disabled

# ifconfig eth0 up

# cat /sys/class/net/
eth0/      firewire0/ lo/        wlan0/

Thanks ahead for telling me how to activate/wake the cable connection,

Best regards,


Reply to: