two internal networks

Discussions about using Linux guests in VirtualBox.
Post Reply
haopeng
Posts: 1
Joined: 2. May 2021, 00:52

two internal networks

Post by haopeng »

Hi guys, I want to connect 3 VMs by setting two internal networks with same subnet, like VM1 has interface enp0s3 with 192.168.1.11/24, VM2 has two interfaces enp0s3 with 192.168.1.10/24 and enp0s8 with 192.168.1.20/24, VM3 has interface enp0s3 with 192.168.1.12/24. I can ping from VM1(enp0s3) to VM2 two interfaces (enp0s3 and enp0s8) successfully, but cannot ping from VM3 (enp0s3) to VM2 (enp0s8), as shown in picture1. But when I set two internal networks into different subnet, they work as usual in picutre 2, i can ping from VM1 (enp0s3) to VM2 (enp0s3) and from VM3 (enp0s3) to VM2(enp0s8). Could anyone show me what's wrong?
Attachments
Picture2.png
Picture2.png (8.99 KiB) Viewed 1278 times
Picture1.png
Picture1.png (33.91 KiB) Viewed 1278 times
Post Reply