Newbie question about static routing
From: Frank Millman (frank_at_chagford.com)
Date: 21 Oct 2005 23:48:46 -0700
I am trying to understand static routing. I have tried to set up the
simplest of scenarios, and I cannot get it to work. Either I am missing
something obvious, or I have misunderstood how it is supposed to work.
This is what I tried.
Host A - an FC4 machine with 2 network cards - eth0 is 10.0.0.1, eth1
Host B - eth0 is 192.168.1.2, gateway is 192.168.1.1
Host C - eth0 is 10.0.0.2, gateway is 10.0.0.1
Routing table on A -
Destination Gateway Genmask Flags Use Iface
10.0.0.0 * 255.255.255.0 U eth0
192.168.1.0 * 255.255.255.0 U eth1
18.104.22.168 * 255.255.0.0 U eth1
default 192.168.1.1 0.0.0.0 UG eth1
>>From A, I can ping 10.0.0.2 and 192.168.1.2
>>From B, I can ping 10.0.0.1 and 192.168.1.1
>>From C, I can ping 10.0.0.1 and 192.168.1.1
>>From B, I cannot ping 10.0.0.2
>>From C, I cannot ping 192.168.1.2
Please can someone tell me what I am doing wrong.