folks. Firstly, I really have done a lot of searching, but still couldn't find a problem which was exactly the same as mine, and I have tried some of their answers, but didn't work. Finally, I put my problem here.
I have a machine C with two NICs, namely eth0 and eth1, with CentOS 4.9 installed on it. Also I have a machine A connecting to C through eth0 and a machine B connecting to C through eth1. Now I want machine A to be in a subnet(e.g. 192.168.1.0/24) and machine B to be in another subnet(e.g. 192.168.2.0/24) and they could communicate with each other.
For example, here is a scenario
In machine A, the command ping 192.168.2.100 could return correctly, and vice vesa.
Above is my demand. But I don't know how to do it. Any suggestions will be appreciated. Hope make myself clear.
Thanks in advance.