Linux -> XP LAN. doesn't work Internet but ssh yes
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.
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.
Linux -> XP LAN. doesn't work Internet but ssh yes
Hello my name is Nahuel, I'm new in the forum.
My quesetion is as follows
I've made a small lan at home with two PC, one with gentoo (2.6.23-r8) and the other with WinXp. The problem I have is that i can connect with ssh from the PC with xp (using a live CD of gentoo) to my PC with the installed gentoo, but the Internet doesn't work.
Here, the datails.
gentoo PC:
eth0 ( 192.168.1.2 ) -> inet
eth1 ( 192.168.2.1 ) -> lan
iptables nat:
iptables -t nat -A POSTROUTNG -s 192.168.2.0/24 -j MASQUERADE
XP PC:
Lan ip ( 192.168.2.2 )
Any ideas of what could be happening ? Any other information you need?
Your ISP should supply a valid IP for the WAN connection (192.168.x.x is only valid as a LAN address). Usually, this will be done with DHCP, so your ethernet config file should specify this. I don't know how Gentoo configures networking, but if it is like Redhat, it should contain something like
( /etc/sysconfig/network-scripts/ifcfg-eth0 )
Yes, the DSL modem, or likely something upstream, should be providing DHCP services. However, you said
Quote:
eth0 ( 192.168.1.2 ) -> inet
which does not make sense. If you are saying that the DHCP server assigned the 192.168... address, then I suggest you double check that, because I cannot imagine any ISP's DHCP server assigning that address. What, if anything, have you done to configure the eth0 interface?
--- rod.
Hello budies.
theNbomr, I think I've been miss undertood. What I tried to mean when I say
eth0 ( 192.168.1.2 ) -> inet
I meant that it was the NIC that is going out to the internet, and the other one is the one that is being used to bring up the LAN between the two PCs. Thats why its not necessary dhcp here, because the IPs are assigned by me.
Well, the problem has been solved. Thanks averyone for helping out. Do you want to know what it was ? jejeje Do you remember the FORWARD chain from iptables ? Well it default policy was DROP !!! It seems to be that I changed it once, and I forgot to set the default as ACCEPT. Stupid one...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.