Basically I would like to know what should I do to connect two PCs in different networks and make them to see each other.
The diagram is like the following
linux-pc-1-1 (192.168.0.2 eth0) <---> (192.168.0.1 eth0) linux-pc-1 (10.0.0.1 eth1) <---> (10.0.0.2 eth0) linux-pc-1-2
Basically I want to ping from linx-pc-1-1 and get an answer from linux-pc-1-2 and the oposite.
I was trying to create a route in linux-pc-1-1 to the net 10.0.0.0/24 via 192.168.0.1
ip route add 10.0.0.0/24 via 192.168.0.1
And in linux-pc-1-2
ip route add 192.168.0.0/24 via 10.0.0.1
But it doesn't work.
Can anyone help me explaining why I can't do this and how to solve this problem?