LinuxQuestions.org
Visit Jeremy's Blog.
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 11-18-2004, 09:36 AM   #1
bingviini
LQ Newbie
 
Registered: Nov 2004
Location: The South Pole
Distribution: debian
Posts: 6

Rep: Reputation: 0
Red face 70% packet loss


I have two computers: winXP in one and linux(debian) in other.
Linux is my router, so there is two network cards in it.
eth0 is out and eth1 to winxp.

my iptables settings are:

modprobe ipt_MASQUERADE
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to xxx.xxx.xx.116
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT
iptables -P INPUT DROP
iptables -A FORWARD -i eth0 -o eth0 -j REJECT

route -n gives:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
xxx.xxx.xx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 xxx.xxx.xx.1 0.0.0.0 UG 0 0 0 eth0

so eth0 ip is xxx.xxx.xx.116
(of course x's are replaced by the real numbers)

eth1 ip is 192.168.1.1

winxp ip is 192.168.1.100
gateway is 192.168.1.1


It worked a while with these settings, but now it does not. I don't know
what is the problem.. I have made some configuration, but not concerning about interfaces..

linux can ping winxp, but 58% packet loss

winxp can ping linux, but 75% packet loss.

So network works very very showly with winxp. It finds some pages, some even pretty quick (like google).. But it doesn't work like it has been working.
What can be the problem here?
 
Old 11-18-2004, 10:01 AM   #2
bignerd
Member
 
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98

Rep: Reputation: 15
logon to your linux box and ping either the gateway (your isp) or some other internet site like google. Do you still have a lot of packet loss? (yes/no)

Describe the physical layer between your linux box and the winxp box. Hub, switch, cross over cable?

Do you own a cat? (mine chews my cables.. bad kitty!)

Do you have other ip addressable devices are connected to your inside interface of your linux box? (computers, wireless access points, anything that can take an ip address)

There are lots of reasons for packet loss. With more details maybe we can identify the problem.

-b
 
Old 11-18-2004, 10:18 AM   #3
bingviini
LQ Newbie
 
Registered: Nov 2004
Location: The South Pole
Distribution: debian
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bignerd
logon to your linux box and ping either the gateway (your isp) or some other internet site like google. Do you still have a lot of packet loss? (yes/no)

Describe the physical layer between your linux box and the winxp box. Hub, switch, cross over cable?

Do you own a cat? (mine chews my cables.. bad kitty!)

Do you have other ip addressable devices are connected to your inside interface of your linux box? (computers, wireless access points, anything that can take an ip address)

There are lots of reasons for packet loss. With more details maybe we can identify the problem.

-b
linux box pings fine isp gateway and google etc. and network is working fine with linux.

there is a cross over cable, and i don't have a cat.

i have only these two machines. no wireless or anything else.
 
Old 11-18-2004, 10:46 AM   #4
bignerd
Member
 
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98

Rep: Reputation: 15
Hmm.. no kitty cat. Ok.

There are a few possibilities.

1. Replace the crossover cable with another crossover that you know is good.
2. Double check the MAC address of the win box and linux inside interface. They should not be the same. Long shot but I've seen this happen before and cause packet loss.
3. Either replace the linux box inside interface nic and / or the win xp nic or connect them to different computers (a laptop works nice) and see if you still get packet loss or which one is the culprit.
4. If you have service pack 2 installed on your XP box try turning off the firewall for testing purposes. May require a reboot.. stupid windows.

-b
 
Old 11-18-2004, 10:46 AM   #5
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL5/6, Solaris 10/11, NetBSD, OpenBSD, FreeBSD, MacOS
Posts: 221

Rep: Reputation: 40
Hi bingviini,

What happens if you reboot your linux box that's acting as the router?

Actually, before trying that, what happens if you swap out the cable between your 2 machines for a working crossover cable?

Cheers,

Steve
 
Old 11-18-2004, 11:35 AM   #6
bingviini
LQ Newbie
 
Registered: Nov 2004
Location: The South Pole
Distribution: debian
Posts: 6

Original Poster
Rep: Reputation: 0
Lightbulb

Sorry guys for bothering you.. the cable was only broken ..

I don't understand how it broke down.. I haven't even touched it.
Maybe it was some cheap shit or something.
 
  


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
packet loss. bruse Linux - Networking 1 09-01-2005 08:24 AM
50% packet loss only with Linux alexdanoob Linux - Networking 2 04-21-2004 05:24 AM
What can cause packet loss? Micah Linux - Hardware 8 03-15-2004 12:31 AM
ping packet loss on FreeBSD Vyeperman *BSD 4 10-04-2003 12:58 AM
90% packet loss to router? OatBran Linux - Networking 7 11-19-2001 01:54 AM


All times are GMT -5. The time now is 08:24 PM.

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