Operating System - Linux
1825060 Members
5104 Online
109679 Solutions
New Discussion юеВ

Re: how to fixed "network interface card" speed to 100 full duplex

 
SOLVED
Go to solution
sam chen
Advisor

how to fixed "network interface card" speed to 100 full duplex

Deat Sir,
Could you please tell me how to do it.
Thanks a lot.
15 REPLIES 15
Stuart Browne
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

Unfortunately this is slightly different depending on which driver you are using.

The command 'modinfo ' will tell you what flags are available.

Usually, an entry similar to this in '/etc/modules.conf' is what it takes:

options eepro100 options=48

to hardware at full-duplex 100Mbit.
One long-haired git at your service...
Vitaly Karasik_1
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

here are two ways in Linux to force NIC to work in 100 FD mode

1) almost universal way using mii-tool or ethtool utilities, you should add


mii-tool -F 100baseTx-FD

string into /etc/rc.local script (see "man mii-tool" for more options)


2) set NIC module (driver) parameters using /etc/modules.conf. Unfortunately there is no universal parameters suitable for all NICs' below you can see few examples:

You may learn more from output of "modinfo" command and NIC module/driver documentation/websites



eepro100: (Intel Ethernet Express 10/100)

options eepro100 full_duplex=1

e100: (Intel Ethernet Express 10/100)

options eth0 e100_speed_duplex=4

bcm5700 (Broadcom Gigabit Ethernet)

options eth0 line_speed=100 auto_speed=0 full_duplex=1

e1000 (Intel Gigabit Ethernet)

options e1000 Speed=100,Duplex=Full



Rgds,

Vitaly
sam chen
Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

Hi Stuart,
I have checked my NIC.
It's Broadcom Trgon3.
Could you tell me which file I need to modify.
I am not sure how to do it.
Thanks fot your assist.
Stuart Browne
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

Ok then! TG3 module is a pain-in-the-ass..

Mainly being it doesn't have any configurable options to limit/force a data rate.

If it is a broadcomm card (which if it's a HP/Compaq machine, it more than likely is), use the HP recomended 'bcm5700' driver, not 'tg3'.
One long-haired git at your service...
Jeroen Peereboom
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

Addition: the bcm5700 driver is part of the Proliant Support Pack, which can be downloaded from starting point http://h18004.www1.hp.com/products/servers/platforms/

JP
Vitaly Karasik_1
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

for bcm5700 driver see options in my previous post


for tg3 [yes, it were a lot of problem with tg3 in in the past, may be now we have better version]: ethtool should force tg3 to 100FD
sam chen
Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

Hi Stuart,
Yes, it's a Itanium rx2600 workstation, OS version is RedHat AD 2.1.
This NIC is eth1.
Could you tell me how to change driver to bcm5700.
And why can't still use tg3 driver?
Thank you very much.
sam chen
Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

Hi Vitaly,
Do you have good idea in this case such as install a currect driver or fix 100FD.
Then could you write down how to do it.
Thanks for your assist.
sam chen
Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

Hi Vitaly,
Are you here.
Could you tell me how to force TG3 to 100FD.
Thanks a lot.
Darrin St. Amant
Frequent Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

You can nail your connection w/ the tg3 driver. Just dwnload the ethtools rpm and install, and then nail your duplex speed by
ethtool -s eth0 speed 100 duplex full autoneg off.

cheers!
ds.
Vitaly Karasik_1
Honored Contributor
Solution

Re: how to fixed "network interface card" speed to 100 full duplex

Sam,

I'm living in Israel, not US, so it was night here :-)

IMHO, you don't have to switch from tg3 to bcm5700,

try to force tg3 to be 100FD using ethtool first.

If it doesn't work, when:

- check if you have bcm5700 driver:

find /lib/modules -name bcm5700.o

If you have it, when:

- service network stop
rmmod tg3
insmod bcm5700
service network start

Does it work? if yes, just replace tg3 with bcm5700 in /etc/modules.comf.

If you don't have bcm5700 module, you should dw/compile/install it.
Jeroen Peereboom
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

Sam,replying to 'how should I install the bcm5700 driver'.I downloaded and copied the Proliant Support Pack, started install700.sh script and selected to install the NIC drivers only.It will modify your modules.conf with something like:alias eth0 bcm5700alias eth1 bcm5700And you need to reboot.You can add an options line later.JP.
Jeroen Peereboom
Honored Contributor

Re: how to fixed "network interface card" speed to 100 full duplex

By the way, It seems that if I reply using my Linux system the linefeeds are missing in my replies. Sorry.JP.
sam chen
Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

Hi Vitaly,
Thanks for your assist.
This problem has being solve.
Really,you are living in lsrael.
It's so far with me. :-)
Are you Jewess?
I am living in Taiwan.
Nice to meeting you via Internet.
sam chen
Advisor

Re: how to fixed "network interface card" speed to 100 full duplex

Hi JP,
Thanks for your assist.
This problem has been resolve.
Thank you :-)