Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi every body.
I have tow computers.
Computer number 1 with RHEL4-AS and another with Fedora Core 5.
The ethernet card on RHEL-AS is 10/100 and other is 10/100/1000. The cable type is cat 5 and i use Switch to linked computers.
I use NFS to shared files.
Once i copying files between computers the transfer speed is 10 MPS in the best.
I trying linked computer with crossover cable and the speed is same.
Can you help me.
Check your settings on the NICs on each card. Since both can do 100 MB that's what you want to do. Also set it for full duplex rather than half.
Often slow speeds like this are due to autonegotiate being turned on. You should turn it off on both and hard set both to speed 100 with full duplex.
You can usually do this with ethtool or mii-tool if ethtool doesn't work for your NIC.
ifconfig will show you which NICs you have (typically eth0 is the first ethernet card - lo0 is the loopback which you can ignore).
My notes on use of these utilties:
ethtool command will set NIC parameters:
ethtool -s eth0 autoneg off speed 100 duplex full
NOTE: To force the options at all boots add the following to ifcfg-eth0:
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
mii-tool command will set NIC parameters - older tool than ethtool
mii-tool -F 100baseTx-FD eth1
mii-tool -v eth1 # Shows info about the interface
Whoo-hoo - this is post #1000 so I'm officially a Senior Member.
Thanks very much for your help and congratulation. Your are Senior Member.
I following your steps but the transfer speed is not change.
look at this.
---------------------------------
On client(Fedora Core 5)
---------------------------------
[root@client ~]# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: yes
[root@client ~]# mii-tool -v eth0
eth0: 100 Mbit, full duplex, link ok
product info: vendor 00:08:18, model 24 rev 0
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD flow-control
-----------------------------
On Server(RHEL-4-AS)
-----------------------------
[root@server ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000007 (7)
Link detected: yes
[root@server ~]# mii-tool -v eth0
eth0: 100 Mbit, full duplex, link ok
product info: vendor 00:00:00, model 0 rev 0
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
If the above post does not help try :/sbin/hdparm -tT /dev/hda (assuming hda). It is a long shot, but if your drives have something funky going on it may (if the drives are really slow) limit your transfer rate. You will probably need to be root. Here is my old pata drive as an example:
[root@127 ~]# /sbin/hdparm -tT /dev/hda
/dev/hda:
Timing cached reads: 2468 MB in 2.00 seconds = 1234.38 MB/sec
Timing buffered disk reads: 172 MB in 3.00 seconds = 57.33 MB/sec
You are set at 100 Full with no autonegotiate based on what you posted. Did you change something or was it already like that?
Also you mention having tried a cross-over cable which makes it sound like you're going through a hub or a switch normally. If a switch you have to make sure the switch ports are also not set to autonegotiate.
By the way you don't have to do both ethtool and mii-tool. I mentioned both only because I've run into some older NICs on which ethtool doesn't work but mii-tool does. If ethtool works you don't have to run mii-tool.
With a GigE controller on one end you should be able to use a straight through cable to hook directly from machine to machine (in case you router/switch has a problem and your crossover cable has a problem).
Hi every body.
The ethernet card on RHEL-AS is 10/100 and other is 10/100/1000.
...
Once i copying files between computers the transfer speed is 10 MPS in the best.
Not sure if you resolved this, but if your problem is that you are getting 10 MegaBytes per second (MBPS), then that's the best that your hardware supports.
Server RHEL-AS 10/100 = 100 Megabits per second max
Client FC5 10/100/1000 = 1,000 Megabits per second max
The whole transfer is limited by the slowest point, which is the server at 100 Megabits per second.
The best you can get is 100 Megabits per second which, (with 10 bits/byte; 8 + 2 for start and stop bits) is 10 Megabytes per second.
If you want to get a faster transfer, you need to get everything upto Gigabit Ethernet, which means a GigE NIC for the server, and a GigE switch. You may run into other problems if your machines are plain PCI (32-Bit 33Mhz) and only see a transfer rate of about 300 Megabits per second. (Still three times what you are getting now). With 64-Bit PCI @ 133 MHZ (server class hardware) you can easily get 900+ Megabits per second.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.