Skip to contentSkip to conversation

setting duplex mode on ethernet cards

DISCUSSION Paul Furness 5 participants 9 messages Jun 13, 2002 – Jun 18, 2002

lore
Share & tools
lore
#0 lore raw

Hi.

Can anyone tell me how to find out the speed (10/100) and the full/half-duplex-ness of my ethernet card?

I thought there'd be something under /proc, but I can't find anything (probably because I'm not looking hard enough).

I am running RedHat 7.3 and ximian plus all the patches I can find (it was a new build, not an upgrade), and I am using a Dell Precision 340 which has an onboard 3C59x controller.

My kernel version is 2.4.18-3 (as comes from RedHat) which I haven't built from source - it's just running the way it came. I'll get around to building a custom one sometime soon... :)
The main implication of this is that I am running the network driver as a module, rather than compiled in directly.

Thanks.

Signature · 6 lines
Paul Furness

Systems Manager

Visual Information Laboratory
Mitsubishi Electric ITE BV 
#1 lore raw
Quoted 3 lines · Paul Furness

Can anyone tell me how to find out the speed (10/100) and the full/half-duplex-ness of my ethernet card?

I don't know how to do this.

But I do know how to set the duplex switch for a 3c59x ethernet card. This is from http://www.scyld.com/network/vortex.html

In your /etc/modules.conf file, you should have:

alias eth0 3c59x
options eth0 full_duplex=1

and then reboot. (You could also insmod the module, but you'd first have to go to single-user, rmmod the module, and insmod it with the full_duplex option. Might as well edit modules.conf and reboot to make sure it will take the next time you reboot.)

I had to do this because I connect to an old switch which doesn't auto-negotiate the duplex setting.

Cheers,
--Dave

#3 lore raw
In reply to Paul Furness

Hi,

Redhat 7.3 includes a tool called "mii-tool", found in /sbin. Run this with no arguments, and it will show you what your link(s) are connected at.

Thanks.
----- Original Message -----
From: "Paul Furness" <[email protected]>
To: "Linux-Admin" <[email protected]>
Sent: Thursday, June 13, 2002 7:12 AM
Subject: setting duplex mode on ethernet cards

Quoted 35 lines

Hi.

Can anyone tell me how to find out the speed (10/100) and the full/half-duplex-ness of my ethernet card?

I thought there'd be something under /proc, but I can't find anything (probably because I'm not looking hard enough).

I am running RedHat 7.3 and ximian plus all the patches I can find (it was a new build, not an upgrade), and I am using a Dell Precision 340 which has an onboard 3C59x controller.

My kernel version is 2.4.18-3 (as comes from RedHat) which I haven't built from source - it's just running the way it came. I'll get around to building a custom one sometime soon... :)
The main implication of this is that I am running the network driver as a module, rather than compiled in directly.

Thanks.

--
Paul Furness

Systems Manager

Visual Information Laboratory
Mitsubishi Electric ITE BV

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 4 lines · mike

Redhat 7.3 includes a tool called "mii-tool", found in /sbin. Run this with no arguments, and it will show you what your link(s) are connected at.

Thanks for the tip. mii-tool also allows you to change the settings of the card without rebooting or going into single-user.

--Dave

#5 lore raw
In reply to mike

Thanks, and thanks to everyone who made some suggestions.

mii-tool worked just great to tell me what I was using (100M HD) and putting:

options 3c59x full_duplex=1

in /etc/modules.conf persuaded the card to go at 100M FD.

P.

Quoted 54 lines · mike

Hi,

Redhat 7.3 includes a tool called "mii-tool", found in /sbin. Run this with no arguments, and it will show you what your link(s) are connected at.

Thanks.
----- Original Message -----
From: "Paul Furness" <[email protected]>
To: "Linux-Admin" <[email protected]>
Sent: Thursday, June 13, 2002 7:12 AM
Subject: setting duplex mode on ethernet cards

Quoted 26 lines

Hi.

Can anyone tell me how to find out the speed (10/100) and the full/half-duplex-ness of my ethernet card?

I thought there'd be something under /proc, but I can't find anything (probably because I'm not looking hard enough).

I am running RedHat 7.3 and ximian plus all the patches I can find (it was a new build, not an upgrade), and I am using a Dell Precision 340 which has an onboard 3C59x controller.

My kernel version is 2.4.18-3 (as comes from RedHat) which I haven't built from source - it's just running the way it came. I'll get around to building a custom one sometime soon... :)
The main implication of this is that I am running the network driver as a module, rather than compiled in directly.

Thanks.

--
Paul Furness

Systems Manager

Quoted 9 lines

Visual Information Laboratory
Mitsubishi Electric ITE BV

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 6 lines
Paul Furness

Systems Manager

Visual Information Laboratory
Mitsubishi Electric ITE BV 
#6 lore raw
Quoted 8 lines · Paul Furness

Thanks, and thanks to everyone who made some suggestions.

mii-tool worked just great to tell me what I was using (100M HD) and putting:

options 3c59x full_duplex=1

in /etc/modules.conf persuaded the card to go at 100M FD.

Are you aware that forcing full-duplex is usually the wrong thing to do?

If the network is switched, full-duplex should get enabled automatically. If the network isn't switched, enabling full-duplex will usually have an adverse effect upon performance, due to collisions.

IOW, are you using full-duplex because you just assumed that it would better than half-duplex, or are you aware of the issues, and know of a particular reason why, in spite of the fact that the driver doesn't enable full-duplex, it really is OK to use it?

Signature · 1 line
Glynn Clements <[email protected]>
#7 lore raw

In message <[email protected]>, Glynn Clements

Quoted 12 lines · writes:
Quoted 8 lines · Paul Furness

Thanks, and thanks to everyone who made some suggestions.

mii-tool worked just great to tell me what I was using (100M HD) and putting:

options 3c59x full_duplex=1

in /etc/modules.conf persuaded the card to go at 100M FD.

Quoted 7 lines

Are you aware that forcing full-duplex is usually the wrong thing to do?

If the network is switched, full-duplex should get enabled automatically. If the network isn't switched, enabling full-duplex will usually have an adverse effect upon performance, due to collisions.

Not necessarily: The departmental 100baseT switch where I am is old and does not auto-negotiate duplex settings. There is a physical switch on each port of the switch that switches duplex settings. (Um, I was at a loss for words.) Anyway, upshot is that I needed to force full-duplex (mii-tool -F 100baseTx-FD).

But, yes, one must make sure that FD is the appropriate setting.

--Dave

#8 lore raw
In reply to Glynn Clements

Yeah, thanks, I know it's not usually the right way to do it. We thought we might possibly have a faulty switch, and I also thought that the version of the kernel I had compiled might have gone wrong.

It turned out to be a fault on the cat 5E patch panel (some almost but not quite touching bare wires) that was causing all kinds of havoc.

It is now all behaving itself properly, including autoneg to 100M FD.

I should have learned by now: "Check no.1 - is it plugged in right?"

:)

P.

Quoted 28 lines · Glynn Clements
Quoted 8 lines · Paul Furness

Thanks, and thanks to everyone who made some suggestions.

mii-tool worked just great to tell me what I was using (100M HD) and putting:

options 3c59x full_duplex=1

in /etc/modules.conf persuaded the card to go at 100M FD.

Are you aware that forcing full-duplex is usually the wrong thing to do?

If the network is switched, full-duplex should get enabled automatically. If the network isn't switched, enabling full-duplex will usually have an adverse effect upon performance, due to collisions.

IOW, are you using full-duplex because you just assumed that it would better than half-duplex, or are you aware of the issues, and know of a particular reason why, in spite of the fact that the driver doesn't enable full-duplex, it really is OK to use it?

Signature · 1 line
Glynn Clements <[email protected]>
Signature · 6 lines
Paul Furness

Systems Manager

Visual Information Laboratory
Mitsubishi Electric ITE BV