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.
My weekend project is turning into a career so I'm throwing in the towel and asking the experts. I've googled this extensively and searched these forums. Checked everything I found mentioned and tried a lot of different things but nothing seems to make any difference.
I have a VIA EPIA system board on which I've installed the latest stable release of Debian, compact flavor. The problem is with network speed, both internet and local net. ftp downloads are at a speed of 0.3 Kb/sec, most of the time the connection times out and closes. Pinging yahoo will result in between 5% to 15% packet loss. It doesn't start out slow and speed up, it starts out slow, stays slow, eventually gives up. This problem occurs when connected to a machine across the country over the internet or across the room through the router. Same problem with telnet from another machine in the same room - it takes a minute to get a signon screen.
Clues to finding the solution are these:
If I bypass the router (Linksys BEFW11S4, wired connection) and go direct into the cable modem it works fine, so I don't suspect the embedded ethernet support. There is only eth0 on the machine.
Two other Win machines work fine through the router, so I don't suspect a problem with it.
netstat -i lists eth0 and lo, and doesn't show any rx or tx errors, drops, or overs. Flags are BMRU for eth0 and LRU for lo.
netstat -nr shows what I believe are the correct settings, for the most part: First line shows Destination 192.168.1.0, Gateway 0.0.0.0, Genmask 255.255.255.0, Flag U, MSS 0, Window 0, irtt 0, Iface eth0.
2nd line shows Destination 0.0.0.0, Gateway 192.168.1.1, Flag UG, 3 zeros and Iface eth0.
Here's an odd point: There is no lo listed. I've added it several times using '/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo' but when I reboot it's gone. When it's there I see a minor improvement although I may have imagined it. At any rate it's not enough of an improvement to keep ftp connections from timing out.
ifconfig lists eth0 and lo, no errors, no loss, no overruns.
resolv.conv lists 3 nameservers at my isp. I can ping them.
I don't know what else to add. Sorry I couldn't cut and paste, but that machine's too slow.
do you have ipv6 enabled in the kernel?
you could try this, it seemed to work well for me
echo "alias net-pf-10 off" >> /etc/modprobe.conf
echo "alias IPv6 off" >> /etc/modprobe.conf
This will turn off IPv6 without having to recompile.
Thanks for the tip, I really appreciate it. I've seen the suggestion regarding ipv6 in other posts and have wanted to try it, but have been scared off by the dire warnings against editing in the modules.conf file, and wasn't quite confident enough to run update-modules.
Let me apoligize in advance for being so dense, but the last time I used an *X OS it was with pine for email and uucp for a connection... if you can call that a connection.
In your post is that the command exactly as it should be entered? I checked the man page for echo and found it too brief to be much help. Then I checked 'info echo' and found more info than my simple mind coud absorb in a week... It's feast or famine in this neck of the woods.
Should I just edit the file, or will echo or update-modules do the trick?
Well that didn't do it.
There is no modprobe.conf There is a file named modprobe but it's binary. There is a modules.conf that has the alias statements you described.
I entered the commands
echo "alias net-pf-10 off" >> /etc/modules.conf
echo "alias IPv6 off" >> /etc/modules.conf
and the statements were added at the bottom of the file. Reboot and there was no improvement.
Afterwards I made changes to /etc/modutils/aliases, ran update-modules, checked modules.conf and that had the same effect of uncommenting 'alias net-pf-10 off'. I also made a change that was supposed to prevent loading char-major-10-135, since I've been getting an error all along that it can't be found. It made the proper change to modules.conf, but I still get the error. Because of that I wonder if ipv6 and net-pf-10 are really off. Is there a way to check? I haven't been able to find one. Or, are there any other suggestions on how to make this machine communicate at an acceptable speed?
Thanks again.
hmmmm, that is strange, for me the change was almost instantaneous.
Here is how to check for IPv6 in the running kernel
Check to see if if_inet6 exists it will be in
/proc/net/if_inet6
You can also test this way:
# test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"
If this fails, it is quite likely, that the IPv6 module is not loaded.
Thanks again for your help ErcoupeBaby. I'm making progress on other parts of this project, but this particular problem is a zinger.
There's no mention of if_inet6 in /proc/net :
debian:/proc/net# dir
arp dev_mcast netlink raw rpc snmp tcp unix
dev dev_stat netstat route rt_cache sockstat udp
Here is ifconfig, netstat, resolv.conf, etc. I know posting these details is a security violation, but what I'm trying to make is a digital picture frame. If someone reading this is so bored they want to hack into my machine to see my vacation pictures then so be it. Plus I'm desparate to get this working. I hope the formatting comes out OK.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.