How to make Vrouter work?

Hello Opennebula Teams,
I tested Vrouter on OpenNebula, I created 2 VNETs, 2 VMs (named A and B). Each VM has 1 VNET with IPs 192.168.0.2 for VM A and 10.10.10.2 for VM B. On Vrouter, there are also 2 interfaces with IPs 192.168.0.3 and 10.10.10.3. I configured the default gateway on both VMs to point to the VRouter’s IP, but pinging between them does not work (VMs can ping the gateway).

I checked via tcpdump and found that:

  • If I ping from VM B (10.10.10.3) to VM A (192.168.0.3), VM A receives the request packet and replies to VM B. Interface 192.168.0.3 of VRouter captures both echo request and reply packets, but interface 10.10.10.3 only captures request packets (it seems VRouter successfully routes the request packets but not the replies).
  • Pinging from VM A (192.168.0.2) to VM B (10.10.10.2) sends echo request packets only to interface 192.168.0.3 of VRouter, while interface 10.10.10.3 does not receive any packets.
    Note: VM A (192.168.0.2) can ping the IP 10.10.10.3 of VRouter. VM A (192.168.0.2) can ping the IP 192.168.0.3 of VRouter.

Version: Opennebula 6.8.
Perhaps I missed some configuration, how can I configure them?
Thanks

Hello,

Did you enable NAT on the Virtual router?

Thank you