Operating System - Linux
1826141 Members
5044 Online
109690 Solutions
New Discussion

Re: network card speed/mode settings

 
SOLVED
Go to solution
Matthias Bayer
Advisor

network card speed/mode settings

Hi,

can anyone tell me how to find out which speed and which mode (10 HD / 100 FD) the network card is using and how to set e.g. the card fix to 100 FD ?

thanks
8 REPLIES 8
Alexander M. Ermes
Honored Contributor

Re: network card speed/mode settings

Hi there.
One question : Which chipset on the lan interface ?
For certain chipsets there maybe some tools.
In general :
Try to transfer data from another computer with
the midnight commander. That will show you the
data transfer rate. If the rate is larger 1.25 MB, the speed is 100 MBit.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Dan Wanek
Valued Contributor
Solution

Re: network card speed/mode settings

Check out the mii-diag util. The source can be dowloaded from ftp://ftp.scyld.com/pub/diag/mii-diag.c
Marco Paganini
Respected Contributor

Re: network card speed/mode settings

That depends basically on the driver you're using. You should be able to get some information by looking at /var/log/messages. Look for the "eth0" string (supposing this is your first ethernet). It should show you the current speed.

Keeping alive, until I die.
Andreas Kromat
Occasional Advisor

Re: network card speed/mode settings

We have the following entry in the /etc/conf.modules (Siemens Primergy-Server with Intel EEPRO100 and RH6.1)

alias eth0 eepro100
options eepro100 options=0x30
Ovidiu D. Raita
Valued Contributor

Re: network card speed/mode settings

Try
#lanadmin
then -> lan -> display

My output looks like this:

PPA Number = 0
Description = lan0 Hewlett-Packard 10/100 TX Half-Duplex TT = 1500
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 100000000
Station Address = 0x108327e7b5
Administration Status (value) = up(1)
Operation Status (value) = down(2)
Last Change = 1647
Inbound Octets = 0
Inbound Unicast Packets = 0
Inbound Non-Unicast Packets = 0
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 410
Outbound Unicast Packets = 10
Outbound Non-Unicast Packets = 0
Outbound Discards = 0
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

Ovidiu
Simple solutions to complex problems
Ovidiu D. Raita
Valued Contributor

Re: network card speed/mode settings

I guess I was connected to the wrong Forum. lanadmin works for HP-UX. Just discard my former message.
.....
At least you know how to find this info on HP-UX systems :-)

Ovidiu
Simple solutions to complex problems
Ashish Palkhiwala
Occasional Advisor

Re: network card speed/mode settings

I am assuming that you have 10/100 HP NIC in your system.

If so the simple way of doing this will be, Go to
/etc/rc.config.d/hpbase100conf .

You can hard code the value as 10HD or 100FD etc...
vi this file and within this file you should be able to set the speed and duplex mode as you wish provided that the card is smart enough to detect that.
Lee Martin_1
New Member

Re: network card speed/mode settings

Hi,

well this answer may well be far too late, for the original question in Jan/Feb. Hopefully will be useful for oter though.

Assuming we are using the eepro100 driver you need to make the following entries in /etc/modules.conf

alias eth0 eepro100
options eepro100 options=0x30

The various options are:
Hex Decimal Meaning
0x10 16 Force Full-Duplex operation (must be used with 0x20 or 0x40)
0x20 32 Force 100mbps-only operation
0x30 48 Force 100mbps-only with Full Duplex
0x40 64 Force 10mbps-only
0x50 80 Force 10mpps-only with Full Duplex


It is possible to give options for more than one LAN card by comma separeting the options.

How to find out current speed:

linux1:~ # mii-diag eth1
Basic registers of MII PHY #1: 2100 780d 02a8 0154 05e1 0081 0000 0000.
Basic mode control register 0x2100: Auto-negotiation disabled, with
Speed fixed at 100 mbps, full-duplex.
You have link beat, and everything is working OK.
Your link partner is generating 100baseTx link beat (no autonegotiation).


Here you need to have installed the mii-diag of course :)

All this worked fine for me on SuSE 7.0.

Hope this helps.

Lee