1828933 Members
2240 Online
109986 Solutions
New Discussion

Re: Full duplex settings

 
PVR
Valued Contributor

Full duplex settings

I want to change the duplex settings of network card in my RH 9.0 box. When I tried mii-tool it is giving me the error that mii is not supported.

How can change the speed and duplex settings of network card in linux ??
Don't give up. Try till success...
9 REPLIES 9
Stuart Browne
Honored Contributor

Re: Full duplex settings

If 'mii-tool' doesn't work, you can try 'ethtool'.

If that doesn't work either, it may need these settings to be initialised with the driver.

Is it compiled as a module? If so, use 'modinfo' to see if it has driver-parameters that can be passed to it during module initialisation, using an 'options' line in '/etc/modules.conf'.
One long-haired git at your service...
PVR
Valued Contributor

Re: Full duplex settings

Module is e2000 and i would like to know how can I pass the arguments to this module?

how to make the changs permanent. I want to make it is 100Mbps Full Duplex.

Both ethtool and mii-tool is not working. Is there any way to make the driver compatiable to mii-tool.?

In my system ethtool is not there.
Don't give up. Try till success...
Steven E. Protter
Exalted Contributor

Re: Full duplex settings

Linux defaults to 100 BaseT full duplex

You should not have to force it.

Try replacing cabling.
Then
service network restart

If that does not help check the switch port settings on the switch. They should be set to auto negotiate, but its okay to hard code 100 BaseT full.

I've run into some older hubs that actually operate at 100 BaseT half duplex. It does happen.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
PVR
Valued Contributor

Re: Full duplex settings

I am sure that it is not a network problem.

I want to know how can force full duplex.

Thanks in advance
Don't give up. Try till success...
Stuart Browne
Honored Contributor

Re: Full duplex settings

I don't have an 'e2000' module.. Can I assume this was typo, and should be 'e1000' ?

If that is the case, then an entry in '/etc/modules.conf' that looks similar to:

options e1000 Duplex=2

Will force the interface to be full-duplex upon module init.

I'm not sure if it's possible to force options upon an already inserted module, so you may need to bring the interface down (ifdown eth0), and remove the module (rmmod e1000), then bring the interface back up again (ifup eth0).
One long-haired git at your service...
Roberto Polli
Trusted Contributor

Re: Full duplex settings

Use command
#modinfo MODULENAME
to get attributes of the module and read docs in kernel source (find docs on internet) on how to set 'em up.
a sample output [for eepro100] is
localhost:~/adm>modinfo eepro100
filename: /lib/modules/2.4.7-10/kernel/drivers/net/eepro100.o
description: "Intel i82557/i82558/i82559 PCI EtherExpressPro driver"
author: "Maintainer: Andrey V. Savochkin "
parm: debug int, description "eepro100 debug level (0-6)"
parm: options int array (min = 1, max = 8), description "eepro100: Bits 0-3: tranceiver type, bit 4: full duplex, bit 5: 100Mbps"
parm: full_duplex int array (min = 1, max = 8), description "eepro100 full duplex setting(s) (1)"
parm: congenb int, description "eepro100 Enable congestion control (1)"
parm: txfifo int, description "eepro100 Tx FIFO threshold in 4 byte units, (0-15)"
parm: rxfifo int, description "eepro100 Rx FIFO threshold in 4 byte units, (0-15)"
parm: txdmacount int
parm: rxdmacount int
parm: rx_copybreak int, description "eepro100 copy breakpoint for copy-only-tiny-frames"
parm: max_interrupt_work int, description "eepro100 maximum events handled per interrupt"
parm: multicast_filter_limit int, description "eepro100 maximum number of filtered multicast addresses"

Let me know,
R.
Martin P.J. Zinser
Honored Contributor

Re: Full duplex settings

Hello PVR,

look in /sbin for mii-tool and ethtool. For some reason /sbin seems not to be in the standard path for root if you do a su for me.
Maybe that fooled you too ;-)

Greetings, Martin
Vitaly Karasik_1
Honored Contributor

Re: Full duplex settings

Martin,

/sbin will be in your path if you use "su -" and not just "su" command.
Robert Binkhorst
Trusted Contributor

Re: Full duplex settings

Hi,

You can find info from RedHat on loading parameters for drivers here:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-modules.html

You can find all allowed Ethernet parameters for all supported netwerk cards for RedHat 9 here:
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-modules-ethernet.html

HTH,

Robert
linux: the choice of a GNU generation