ancarpan2 n00b
Joined: 29 Mar 2004 Posts: 68
|
Posted: Fri Jul 21, 2006 8:46 am Post subject: ethtool and link status on HP DL 385 |
|
|
Hi all,
I have a HP DL385 server and I'm trying to check the link status and eventually force the ethernet settings.
The embedded NICS are:
Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
On the same server there is also an additional NIC:
Intel Corporation 82546EB Gigabit Ethernet Controller
There's a cable connected to eth0 and eth1
I have first tried with mii-tool whose output is a bit weird:
Code: | # mii-tool
eth0: 100 Mbit, full duplex, link ok
eth1: negotiated 100baseTx-FD, link ok
eth2: 10 Mbit, half duplex, no link
eth3: no link
|
Which is weird as eth2 is not connected and hasn't been forced (should be autoneg on/ no link)
The second problem is that using mii-tool to force speeds gives
Code: | # mii-tool -F 100baseTx-FD eth1
SIOCSMIIREG on eth1 failed: Invalid argument
|
I then decided to try ethtool which seems to be able to force correctly the settings, but shows them only if the interface is up:
Code: | ~ # ethtool -s eth1 speed 100 autoneg off duplex full
~ # ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: Unknown! (65535)
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: no
~ # ifconfig eth1 up
~ # ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000007 (7)
Link detected: yes
|
I've tried with:
mii-tool.c 1.9 2000/04/28 00:56:08 (David Hinds)
ethtool version 1.8
ethtool version 4
Any one has ideas/experiences about this ?
Thanks.
.a.c. |
|