LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-29-2004, 01:53 PM   #1
Tekel
LQ Newbie
 
Registered: Sep 2004
Location: UK
Distribution: Slackware / Debian / RedHat
Posts: 12

Rep: Reputation: 0
SLow Speeds ETH1 > ETH0 > Local network - Help!!!


Hi All,

Recently upgraded my broadband service to 1.5Mbit, however, it appears now that I am faced with a bottleneck in my Linux set up, and im not sure where its going wrong....

When i plug my CM direct into my windows box, i can quite happily maintain download speeds of 180K/sec, however, when routing traffic through the linux box download to my windows machine can crawl to as low as 15K/sec, Infact i dont think ive seen it peak past 20.

I have hunted high and low all day for an answer to this, tried very near enough every tweak that i could find and im still stumped. Last year i used the same machine but with older network cards and it was fine, i was running 2Mbit through it without an issue.

Current Box;

Trustix 2.1 (2.4 kernel)
P200 MMX CPU, 64MB Ram, 40gig drive;
x2 3com 100MBit nic's....

root@colossus /# mii-tool
eth0: 100 Mbit, full duplex, link ok
eth1: 100 Mbit, full duplex, link ok

root@colossus /# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
82.41.192.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 82.41.192.1 0.0.0.0 UG 0 0 0 eth1

root@colossus /# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:04:AE:D2
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50539 errors:0 dropped:0 overruns:0 frame:0
TX packets:61584 errors:0 dropped:0 overruns:0 carrier:61584
collisions:0 txqueuelen:1000
RX bytes:3941648 (3.7 Mb) TX bytes:73478941 (70.0 Mb)
Interrupt:11 Base address:0xfc80

eth1 Link encap:Ethernet HWaddr 00:01:02:A7:D8:28
inet addr:82.41.xxx.xxx Bcast:255.255.255.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:422986 errors:3730 dropped:0 overruns:1 frame:5600
TX packets:45694 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:95312642 (90.8 Mb) TX bytes:3462977 (3.3 Mb)
Interrupt:10 Base address:0xfc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

root@colossus /# cat /etc/rc.firewall

#!/bin/sh

IPT="iptables"
INET_IFACE="eth1"
LAN_IFACE="eth0"
LAN_NET="192.168.0.0/24"

/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_irc
/sbin/modprobe ip_conntrack_irc

echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/tcp_syncookies
echo "0" > /proc/sys/net/ipv4/tcp_timestamps
echo "2" > /proc/sys/net/ipv4/conf/all/rp_filter
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo "0" > /proc/sys/net/ipv4/conf/all/accept_source_route
echo "1" > /proc/sys/net/ipv4/conf/all/secure_redirects
echo "1" > /proc/sys/net/ipv4/conf/all/log_martians

$IPT -F
$IPT -F -t nat
$IPT -F -t mangle
$IPT -X
$IPT -X -t nat
$IPT -X -t mangle
$IPT -P INPUT DROP
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD DROP
$IPT -t nat -P PREROUTING ACCEPT
$IPT -t nat -P POSTROUTING ACCEPT
$IPT -t nat -A PREROUTING -p UDP -i $INET_IFACE --dport 10975 -j DNAT --to-destination 192.168.0.5:10975
$IPT -A INPUT -p ALL -m state --state INVALID -j DROP
$IPT -A INPUT -p ALL -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPT -A INPUT -p ALL -i lo -s 127.0.0.1 -j ACCEPT
$IPT -A INPUT -p TCP ! --syn -m state --state NEW -j DROP
$IPT -A INPUT -p TCP -i $INET_IFACE -m state --state NEW --dport 22 -j ACCEPT
$IPT -A INPUT -p ALL -j LOG --log-prefix "DROPPED PACKETS: "
$IPT -A FORWARD -p ALL -m state --state INVALID -j DROP
$IPT -A FORWARD -p ALL -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPT -A FORWARD -p TCP ! --syn -m state --state NEW -j DROP
$IPT -A FORWARD -p ALL -i $LAN_IFACE -o $INET_IFACE -s $LAN_NET -j ACCEPT
$IPT -A FORWARD -p UDP -i $INET_IFACE -d 192.168.0.5 --dport 10975 -m state --state NEW -j ACCEPT
$IPT -A FORWARD -p ALL -j LOG --log-prefix "FORWARD DROP: "

$IPT -t nat -A POSTROUTING -p ALL -o $INET_IFACE -j MASQUERADE
*******************************************************

I hope someone will perhaps have an answer to this, as its driving me nuts!

If anyone requires further information - please let me know!

Cheers,

-Tek
 
Old 09-29-2004, 04:48 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
look's fine to me. except the errors/frame int eth1 - which looks like to be the troubling interface. even it's not much (not causing a 90% drop) it might be worthy of mention.

has anything else changed with the new link. new cables, new router...? have you updated windose:-?

sl mritch.
 
Old 09-29-2004, 05:12 PM   #3
Tekel
LQ Newbie
 
Registered: Sep 2004
Location: UK
Distribution: Slackware / Debian / RedHat
Posts: 12

Original Poster
Rep: Reputation: 0
nothing had changed bar two new network cards.. Thing is, i was limited to 256kbps for a bit, so i never actually noticed that it was running slow.

Anyways, i got fedup and installed smoothwall about 20 minutes ago lol - but thanks for your interest anyways! I may try it again with the latest slackware at the weekend, so I may be back to quizz people.

Thanks,

-Tek
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow network speeds pyschomike15 Linux - Networking 9 02-27-2005 06:26 PM
Suse 9.2 - How is determined which network cards becomes eth0 and which eth1 doublemax Linux - Networking 5 02-04-2005 10:25 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Excessively slow network transfer speeds from XP to Linux… MooGLEX Linux - Networking 1 07-04-2004 01:13 AM
eth0 and eth1 with 2 network interfaces codegomer Linux - Networking 12 04-20-2004 10:04 PM


All times are GMT -5. The time now is 02:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration