How to define a static route in VirtualBox?

The first NIC is in the 192.168.10.1/24 network, on the first pc. The second NIC has an IP address of 192.168.10.78 and connected to same network. The problem is this: we have third NIC in the second PC, in other network: 192.168.2.1/24 with an static ip of 192.168.2.2 I want to ping from the first pc network to the 192.168.2.1 network, via the second NIC with IP of 192.168.10.78

Tried to define static route in the first PC as:

route add 192.168.2.0 mask 255.255.255.0 192.168.10.1

And static route on the second PC:

route add 192.168.10.0 mask 255.255.255.0 192.168.2.1

Then trying to ping 192.168.2.2 from the first pc, but not getting any response Its because i using virtual machines and i don’t have router for the default gateway 192.168.2.1?

If so, is there any solution?

I tried to ping from PC 1 to third NIC via the second NIC. They both connected via bridge in the VM settings.