[Tfug] Static Route setup

Kyle Buehler tfug@tfug.org
Tue Jul 30 13:42:01 2002


Do you have forwarding on the linux box set up?

cat /proc/sys/net/ipv4/ip_forward

if it is 0 then you need to 

echo 1 > /proc/sys/net/ipv4/ip_forward

On Tue, Jul 30, 2002 at 11:20:44AM -0700, Nowell Chandler wrote:
> Hey all, maybe someone can give me some info here, as im confusing the heck 
> outta myself.
> 
> I have my linux machine, which is connected to the internet via a house 
> server (running 2k) with IP address 192.168.0.165/255.255.255.0. It hits the 
> internet fine. Due to lack of hub space and other issues, I want to set up 
> the windows machine (right next to me on the desk) to hit the internet via 
> the linux box. So I added a second card, and connected them via a crossover 
> cable. For the moment I assigned it a 192.168.2.1 IP address on the 
> 255.255.0.0 subnet (reading on the web somewhere, that linux doesnt like 
> routing seprate networks on the same subnet). Anyway, I can ping the linux 
> machine and the windows machine just fine, but the windows machine cant get 
> out to the world. For the moment I have the windows machine set as 
> 192.168.2.10 on the 255.255.0.0 subnet. It must be something im doing wrong 
> with my route, but I cannot seem to figure it out. Im running RH 7.2. 
> Following is my /sbin/route output:Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
> 192.168.0.0     *               255.255.0.0     U     0      0        0 eth1
> 127.0.0.0       *               255.0.0.0       U     0      0       0 lo
> default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
> 
> Thanks in advance!
> 
> Nowell
> 
> _______________________________________________
> tfug mailing list
> tfug@tfug.org
> http://www.tfug.org/mailman/listinfo/tfug