LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Slow Network Problem In Linux (https://www.linuxquestions.org/questions/linux-newbie-8/slow-network-problem-in-linux-476775/)

chrisg631 08-23-2006 07:31 PM

Slow Network Problem In Linux
 
I've decided to come back to gentoo on my old P3 450 desktop. The last time I installed 2005.0 was out and didn't have any problems with downloading stages and portage off the net. Now any mirror I try I get ~20KB/s and in WindowsXP I have speeds much faster downloading the same stages off the same mirrors ~400KB/s (cable internet connection and linksys router).

The NIC uses the fealnx module which is loaded at boot with Gentoo x86 Min. CD. I searched around the net and saw some issues with IPv6. I used the noload=ipv6 at boot, still no speed increases. Ping times are round 60-80ms for both IPv4 and IPv6 sites. Ifconfig does not show any errors, collisions, or dropped packets.

I even tried other distro's live cd's, switched cables and still the same results. Me stumped.

Any suggestions?

chrisg631 08-23-2006 10:10 PM

Here is the output of some commands that might help w/the issue:
Code:

# dmesg | grep eth0
eth0: 100/10M Ethernet PCI Adapter at 0xb400, 00:02:2A:C0:96:43, IRQ 11.
eth0: no IPv6 routers present

# lspci | grep net
0000:00:0c.0 Ethernet controller: MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter

# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:02:2A:C0:96:43
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::202:2aff:fec0:9643/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2421 (2.3 KiB) TX bytes:2070 (2.0 KiB)
Interrupt:11 Base address:0xb400

# mii-tool
eth0: 10 Mbit, half duplex, no link

# 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: Not reported
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Current message level: 0x00000000 (0)
Link detected: no


corfe 08-23-2006 10:17 PM

Random idea, could your link speed be really slow and/or half-duplex? I don't think that would take the speed down to 20 kbps, but it's worth a shot making sure it's at least full-duplex. Try looking into the tools "ethtool" and "mii-tool" to make sure it's set to at least 10baseT-FD, preferably 100 or 1000.

Also, how fast can it ping your router?

chrisg631 08-23-2006 10:43 PM

Quote:

Originally Posted by corfe
Random idea, could your link speed be really slow and/or half-duplex? I don't think that would take the speed down to 20 kbps, but it's worth a shot making sure it's at least full-duplex. Try looking into the tools "ethtool" and "mii-tool" to make sure it's set to at least 10baseT-FD, preferably 100 or 1000.

Also, how fast can it ping your router?

Seems like im stuck in half-duplex 10Mb/sec.
Code:

# ethtool -A eth0 autoneg on
Cannot get device pause settings: Operation not supported
 
# ethtool -s eth0 speed 100 duplex full
 
# 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: Not reported
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Current message level: 0x00000000 (0)
Link detected: no

# ping -c3 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=3.2 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.7 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.7 ms

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.7/1.5/3.2 ms


corfe 08-23-2006 11:32 PM

I notice below that it keeps saying that on that eth0 card your link is down. Do you by chance have a wireless net card in that computer that it's connecting with, or any other network card that it's pinging through?

Also, I'd try another port on the router just in case.

chrisg631 08-23-2006 11:37 PM

Quote:

Originally Posted by corfe
I notice below that it keeps saying that on that eth0 card your link is down. Do you by chance have a wireless net card in that computer that it's connecting with, or any other network card that it's pinging through?

Also, I'd try another port on the router just in case.

Nope, this pc only has one NIC (wired). I've even tried going straight to the cable moden and skipping the router.

corfe 08-25-2006 10:49 AM

Well, it might be worth trying knoppix or some other distro's liveCD to see if the problem is with Gentoo or not.

I'd also try another network card in the machine if you can - maybe the drivers for that card in linux aren't very good.

I'm scraping the bottom of the barrel for ideas, I wish you good luck.


All times are GMT -5. The time now is 10:33 PM.