I have created three RedHat virtual machines named: server, client1, client2 in VirtualBox manager. server is connected to client1 on network
10.1.1.x with NIC card (internal network = inet1) and server is also connected with client2 on network
10.2.2.x with another NIC card (internal network = inet2).
I want to communicate from
10.1.1.x network to
10.2.2.x. However, I did route configuration in client1 and client2 to communicate with server and both machines (client1, client2) are able to communicate with server and vice versa. I also enabled the IP forwarding in my server machine but I'm not able to communicate between client1 and client2.
Below are IP configurations of my three machines
static ip add 10.1.1.1 netmask 255.255.255.0 network 10.1.1.0 broadcast 10.1.1.255
static ip add 10.2.2.1 netmask 255.255.255.0 network 10.2.2.0 broadcast 10.2.2.255
static ip add 10.1.1.10 netmask 255.255.255.0 network 10.1.1.0 broadcast 10.1.1.255
ip add 10.2.2.10 netmask 255.255.255.0 network 10.2.2.0 broadcast 10.2.2.255
route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.1.1.1 dev enp0s8
route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.2.2.1 dev enp0s8
Note: Firewall services are also disabled
That is all I have configured, please suggest me what can I do to communicate between