James D. Parra wrote:
* James D. Parra [04-21-10 20:54]:
Does anyone know what the command would be to determine if the nic
has a connection to the network?
ifconfig <device>
ifconfig eth0
ifconfig wlan0
~~~~~~
Thanks Patrick, however that doesn't me if the cat 5 cable is
connected or not.
Try the more modern version "ip addr":
# ip addr show dev eth0
2: eth0: 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
--
Per Jessen, Zürich (7.4°C)
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org