Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-18-2004, 09:36 AM
|
#1
|
LQ Newbie
Registered: Nov 2004
Location: The South Pole
Distribution: debian
Posts: 6
Rep:
|
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?
|
|
|
11-18-2004, 10:01 AM
|
#2
|
Member
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98
Rep:
|
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
|
|
|
11-18-2004, 10:18 AM
|
#3
|
LQ Newbie
Registered: Nov 2004
Location: The South Pole
Distribution: debian
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
11-18-2004, 10:46 AM
|
#4
|
Member
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98
Rep:
|
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
|
|
|
11-18-2004, 10:46 AM
|
#5
|
Member
Registered: Feb 2004
Location: UK
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
|
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
|
|
|
11-18-2004, 11:35 AM
|
#6
|
LQ Newbie
Registered: Nov 2004
Location: The South Pole
Distribution: debian
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|