Mailinglist Archive: opensuse (807 mails)

< Previous Next >
Re: [opensuse] eth* connection status via cli
  • From: Herbert Graeber <hgraeber@xxxxxxxxxxxx>
  • Date: Thu, 22 Apr 2010 21:26:45 +0200
  • Message-id: <201004222126.46088.hgraeber@xxxxxxxxxxxx>
Am Donnerstag 22 April 2010 19:25:48 schrieb James D. Parra:
Try the more modern version "ip addr":

# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
qlen 1000
link/ether 00:50:8b:95:6e:4e brd ff:ff:ff:ff:ff:ff
inet 192.168.2.128/24 brd 192.168.2.255 scope global eth0
inet6 fe80::250:8bff:fe95:6e4e/64 scope link
valid_lft forever preferred_lft forever

Notice the "LOWER_UP" flag.

Otherwise, I'd suggest "ethtool":

# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
~~~~~~~

Thank you, Per Jessen, and others, for your suggestions. The link
connection status is shown with 'ethtool', however that tool is not part
of the Rescue session on the install DVD. The command 'ip addr show' has
'state DOWN' even with the nics cabled and connected to the network.
Definitely getting closer to a solution.

Unfortunately there are multiple methods to check the link status and
different drivers use different mehods and some cannot check the link status
at all. The program ifplugstatus I suggested uses all all known methods for
the check.

Herbert

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References