Inernett sharing between DSL/XPForum: Networking Topic: Inernett sharing between DSL/XP started by: Mr.Crash Posted by Mr.Crash on Mar. 18 2006,10:46
HiFirst of all i most thank the creators of DSL for making such a genius distro. I have been trying to make my internett connection and networking up and running for days now, but now im about to give up with my setup, unless someone have a good idea, i think there must be something seriously wrong with one of my ethercards, even tho they are new. My setup is as following; dsl modem (192.168,1.1) comes into the linux on ether0,(192.168.1.2), then linux ether2 (192.168.0.1) goes from linux into winXP machine with ether3 (192.168.0.2) ether2 has gateway(192.168.0.2) to ether3. ether3 has gateway (192.168.1.1) to the modem. theese two cards is connected by crossed tp cable. every card and modem has subnett 255.255,255.0 im unsure on what broadcast adresses, and gateways to really use, especaly on ether 2 and 3, and where to put dhcp on, if anywhere?. and im also not sure on what to put in for name/dns servers. i want to be able to use the internett thru the dsl machine from winxp, and also be able to share files between the machines. i have tried many diffrent setups for nameservers, ip adresses etc, but no matter what i do im not able to ping either of the machines,and if i try using the webbrowser i get the message "connection not accepted" so there must be something seriously wrong with what i have done, or the hardware. i also disabled all the firewalls, except for maybe in the dsl, if there is one there, i havent found it yet. im very greatfull for any help. Thanks in advance Posted by pr0f3550r on Mar. 18 2006,11:46
I'm no networking guru but there's something weird.Subnet mask is 255.255.255.0, right? eth0,2,3 are on the same machine (multihomed host) or three different machines? Fisrt gateway is 192.168.1.1, how can it speak to ether2 (192.168.0.1) With the above subnet mask, the 3rd bit should be the same on all network, in this case 192.168.1..xxx Posted by larkl on Mar. 18 2006,12:58
I hate to ask, but why the complexity? Can you just hook both directly to the DSL modem or a switch/hub that hooked to the DSL modem? If not, I think you're going to have to read up on IPCHAINS. I'm not sure that there aren't other ways to make it work. If you've assigned these IP addresses manually and the DSL modem isn't providing DHCP IP addresses, then leave DHCP off. I think that you want the gateway and broadcast address on the XP box to be 192.168.0.1 (the IP address of the linux card on the same subnet - the linux PC has to handle the forwarding to the other subnet), the gateway and broadcast address on the linux box needs to be the modem IP (192.168.1.1). Unless of course the instructions from your ISP differ.
|