Becuase they are on the same subnet, (192.168.0.0, I'm guessing your netmask is 255.255.255.0), each windows computer doesn't think it should have to go via the linux router (default gw) to get to the other, hence it is failing.
If you eth0=192.168.0.1, windows1=192.168.0.2 (or anything <255), windows1 default gw=192.168.0.1, and eth1=192.168.1.1 windows2=192.168.1.x (likewise 1<x<255), windows2 default gw=192.168.1.1, then adjust the routing table on the linux box to suit, then you should have more sucess. Make sure that the netmask for all of these is 255.255.255.0. The reason is that now the windows computers will think they are different subnets, and know to go via the default gw to reach them. If you want to learn more about that, there should be a tcp subnetting tutorial somewhere on the web you can read up on. Good luck, Rob. On Thu, 2 May 2002, dionysus wrote: > heya guys, > > I'm trying to set up a home network between my two machines (onw > windows, one linux) and my flatmate's windows box using the linux box > (with two network cards in it) as a routing hub. I have currently got > the linux box able to ping both windows machines (and them able to > ping it) by adding the windows machines to /etc/hosts, and adding > direct routes to them on the routing table. However, neither windows > machine can ping the other. > /proc/sys/net/ipv4/ip_forward is set to 1, and I have fiddled with the > options in netconf (the networking subpart of linuxconf)'s routing > section (the same app I used to add the direct routes to the routing > table) to attempt to get my machine to be able to forward packets. I > have also looked at netcfg but no joy there. The network is set up as > follows: > > linux box (RedHat 7.2 (more or less stock install)): > eth0 = 192.168.0.1 > eth1 = 192.168.0.3 > > windows1: > 192.168.0.2 (connected to 192.168.0.1) > > windows 2: > 192.168.0.4 (connected to 192.168.0.3) > > and the routing table looks like > > windows1 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0 > windows2 192.168.0.3 255.255.255.255 UGH 0 0 0 eth1 > 127.0.0.0 * 255.0.0.0 U 0 0 0 lo > > both of the windows machines have the correct default gateways > installed. > > I'm probably missing something really obvious here, but I've tried > pretty much every combination of options in netconf's routing section, > and I'm damned if I can think of anything else that I should do..... > > If anyone can see anything obviously wrong here please put me out of > my misery and let me know, or if you could point me in the right > direction that'd be much appreciated too. > > Thanks heaps in advance > > -d > -- > SLUG - Sydney Linux User's Group - http://slug.org.au/ > More Info: http://lists.slug.org.au/listinfo/slug > -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
