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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.