PDA

View Full Version : eth0- need to config it at 10Mbps


Evan8
2007-05-25, 12:32 AM CDT
My NIC has to be configured to communicate with my router at 10Mbps Full Duplex.

It does not work at 100Mbps Full Duplex or 100Mbps Half Duplex, the connection is too slow-crowling and browsing is really slow. The change of this setting has been suggested to me by the manufacturers of the router.

Changing this setting in Window$ is easier, but I don't know how to configure my card in Linux.

I have tried
ifconfig eth0 media 10baseT
but it didn't work.

If someone can help I would be grateful.

Thank you.

Zigzagcom
2007-05-25, 02:24 AM CDT
Check to see if you have the right tools:
rpm -qa | grep ethtool
ethtool-3-1.2.2
rpm -qa | grep net-tools
net-tools-1.60-73
In Fedora, you usually use "ethtool"
The first link will allow you to change the settings in real time:
http://www.cyberciti.biz/faq/linux-change-the-speed-and-duplex-settings-of-an-ethernet-card/

Or use this technique, by appending to /etc/sysconfig/network-scripts/ifcfg-eth0:
http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html
ETHTOOL_OPTS="speed 10 duplex full autoneg off"

badall
2007-05-26, 02:43 AM CDT
ifdown eth0

mii-tool -v --force 10baseTx-FD eth0 //for 10 base full duplex

mii-tool -v --force 10baseTx-HD eth0 //for 10 base half duplex

ifup eth0

Evan8
2007-05-26, 10:05 PM CDT
:) Thanks people for the posts.

Problem solved as follows:
I used
ethtool -s eth0 speed 10 duplex full autoneg off
and the connection remained slow and dmesg reported
eth0:link up, 100Mbps, full-duplex lpa 0x41E1
so, at first it wasn't solved.

Then I tried
mii-tool
which reported
eth0:10Mbit, full duplex, link OK

dmesg still reported 100Mbps, but the connection became fast as it should have been, so mii-tool did the job.

Thanks Ziggy for the useful links

marcrblevins
2007-05-27, 12:39 AM CDT
Never heard of router company tell you to lower your standards, very odd. That is the router make/model? Just so we can avoid it. :P

sideways
2007-05-27, 04:15 AM CDT
mii-tool is deprecated, use ethtool for setting/getting info

su -c 'ethtool eth0'

Zigzagcom
2007-05-27, 04:54 AM CDT
Did restart your network after you made the changes:

service network restart

Evan8
2007-05-27, 05:06 AM CDT
No Ziggy, I didn't restart the network. thank u for the advice.
I figured that since I've found out a way to work using mii-tool I didn't need to do that.

I'll try all the new suggestions during the next few days :)