http://www.tutorialsall.com/SLACKWARE/routing-between/
I have exactly the problem as the one in the above link. I also believe that the solution (the one by Eric Hameleers) is also the same: "configure your internet router with an additional return static route for the "hidden" network segment".
The current status of the router (a FC5 box):
[root@Sunflower ~]# echo "1" > /proc/sys/net/ipv4/ip_forward [root@Sunflower ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:C0:9F:4A:62:A8 inet addr:172.16.16.144 Bcast:172.16.19.255 Mask:255.255.252.0 inet6 addr: fe80::2c0:9fff:fe4a:62a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:149195 errors:0 dropped:0 overruns:0 frame:0 TX packets:10836 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16685165 (15.9 MiB) TX bytes:3077530 (2.9 MiB) Interrupt:10 Base address:0xc800
eth1 Link encap:Ethernet HWaddr 00:0C:F1:36:27:6F inet addr:192.168.0.144 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:f1ff:fe36:276f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11971 errors:393 dropped:385 overruns:0 frame:0 TX packets:9938 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3405233 (3.2 MiB) TX bytes:3280636 (3.1 MiB) Interrupt:11 Base address:0xe000 Memory:e0204000-e0204fff
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:14811 errors:0 dropped:0 overruns:0 frame:0 TX packets:14811 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10120532 (9.6 MiB) TX bytes:10120532 (9.6 MiB)
[root@Sunflower ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 172.16.16.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1 0.0.0.0 172.16.16.1 0.0.0.0 UG 0 0 0 eth0 [root@Sunflower ~]#
I need machines on the 192.168.0.x network to be able to access the proxy 172.16.16.2 on the 172.16.16.x network. The router is 172.16.16.144. I have set 192.168.0.144 as the gateway on the 192.168.0.x machines. The machines on the 192.168.0.x network can ping each other, can ping 172.16.16.144, but not any other machine on 172.16.16.x. It seems that the outward packets are getting routed but they are lost on the way back to the 192.168.0.x network.
What would be the exact 'route' command to fix this. I would like to avoid the iptables/ipchains and the NAT way of setting this up.
Please help.
Regards, Debarshi