I tried using my pc as a router by creating a routing table on my pc
using "route" command, but it doesn't seems to work my eth1 has an ip of
192.168.1.139 this is connected to the 192.168.1.0 and to the linksys router , then my second eth0 has an ip of 192.168.2.1 this one is connected to a hub/switch
where my l192.168.2.0 network is connected.
The problem is the network 192.168.2.0 network could not ping any of the 192.168.1.0 network pc except for 192.168.1.139, btw i think i have enables ip forwarding in the /proc/sys/net/ipforward in /etc/sysconfig/network and also in /etc/sysctl.confm, I'm using Fedora core 1, kerne; 2.4.22-1.
btw 192.168.1.1 is my linksys router connected to the internet.
This is my routing table;
================================================== ===========
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.2.1 * 255.255.255.255 UH 0 0 0 eth0
jonathan.proacc * 255.255.255.255 UH 0 0 0 eth1
192.168.2.0 192.168.2.1 255.255.255.0 UG 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 192.168.1.139 255.255.255.0 UG 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
plz reply me as soon as possible
thanks
John,
The problem probably isn't your Linux router. You need to make sure the servers / PCs on our 192.168.1.0 network need to have a route to the 192.168.2.0 network via the linux router 192.168.1.139
Also, the servers / PCs on our 192.168.2.0 network need to have a route to the 192.168.1.0 network via the linux router 192.168.2.1.
If the linux router is the default gateway for the server / PC, then this probably won't be required.
Hope this helps.
Bookmarks