We help IT Professionals succeed at work.

Ethernet card link speed

swapsthegreat
on
Medium Priority
320 Views
Last Modified: 2010-04-20
hi all,
     
     I want to change the ethernet card link speed from auto which is default to 10Mbps. Also i would like to know how to change the mode from half duplex to full duplex. I am using rh-7.1                
Comment
Watch Question

Top Expert 2005

Commented:
That depends on what NIC you have. Some will respond to a 'media' type option to ifconfig, others may be set via options passed in /etc/modules.conf and others (3Com cards for instance) can be programed at the card level. There's a good bit of information and links about a number of NIC cards at http://www.scyld.com/page/support/network/

Commented:
Hi,

As jlevie says, it could vary by card but as an example for tulip-chip based cards - In /etc/modules.conf you'd have something like :

alias eth0 tulip
options tulip options=0 full_duplex=1

This would do auto type negotiation and force full duplex.

If you were using insmod in a script instead the equivalent syntax would be :

/sbin/insmod tulip options=0,0x200

If the driver were compiled into a customised kernel you would have to pass paramters at boot time via lilo.

RGds

Author

Commented:
thats ok 4 mode what about card link speed
CERTIFIED EXPERT

Commented:
No one can help you until you specify what make/model of ethernet card you have.  Please do so at your earliest opportunity.

-Jon

CERTIFIED EXPERT

Commented:
No one can help you until you specify what make/model of ethernet card you have.  Please do so at your earliest opportunity.

-Jon

Author

Commented:
hi

   the card is a Realtek-8139. kernel module is 8139too
Top Expert 2005

Commented:
You can set the link speed/mode with the diagnostic program for that card (http://www.scyld.com/diag/index.html). Just get the diag program (rtl8139-diag.c
) and build it according to the instructions at the end of the code. You can then use the '-A' option to set the card.

Author

Commented:
i didnt get what parameters should i specify with -A option. can u give the exact command that will do it
Top Expert 2005
Commented:
The allowable arguments for the -A option are:

100baseT4
100baseTx     (implies Full Duplex)
100baseTX-FD
100baseTX-HD
10baseT
10baseT-FD
10baseT-HD

So to set the card for a normal 10Mbps link (10baseT Half Duplex) you'd use '-A 10baseT-HD'. If you know the link is Full Duplex capable (i.e. a switch, not a hub) your could use  '-A 10baseT-FD'.

Author

Commented:
thanx man needed that

Explore More ContentExplore courses, solutions, and other research materials related to this topic.