Duplicate Network Issue
Posted: 28. Mar 2022, 08:25
I have a system consisting of four real computers (running Windows 10) that I want to model as VMs on a Windows 10 host using VB 6.1.16. The real system consists of two routers and several VLANs:
Router_A connects to PC_A1 and PC_A2 and Router_B
Router_B connects to PC_B1 and PC_B2 and Router_A
There is a VLAN VLAN_All that covers all six devices. Furthermore there are two VLANs covering all devices having an "A" in their name (VLAN_A) and all devices having a "B" in their name (VLAN_B). The tricky thing is (and unfortunately I cannot change this), VLAN_A and VLAN_B use the same IPv4 subnet but different IPs. They are separated by the routers not forwarding VLAN_A and VLAN_B between them. (See attachment.)
I tried to model this by using multiple networks within VirtualBox and assigning adapters within the guests to the respective networks: Adapter 1 (always host-only adapter) models VLAN_All, Adapter 2 (always internal network named "A") models VLAN_A and Adapter 3 (always internal network named "B") models VLAN_B. IPs are then set accordingly within the hosts. However, VLAN_A and VLAN_B do not work as expected: PC_A1 can reach only PC_B2 (and vice versa) using the VLAN_A or VLAN_B IPs. PC_A2 and PC_B1 do not reach any other PC on VLAN_A or VLAN_B IPs.
Is this a known limitation or bug, or am I using the wrong approach, or something else?
Any help is highly appreciated!
Router_A connects to PC_A1 and PC_A2 and Router_B
Router_B connects to PC_B1 and PC_B2 and Router_A
There is a VLAN VLAN_All that covers all six devices. Furthermore there are two VLANs covering all devices having an "A" in their name (VLAN_A) and all devices having a "B" in their name (VLAN_B). The tricky thing is (and unfortunately I cannot change this), VLAN_A and VLAN_B use the same IPv4 subnet but different IPs. They are separated by the routers not forwarding VLAN_A and VLAN_B between them. (See attachment.)
I tried to model this by using multiple networks within VirtualBox and assigning adapters within the guests to the respective networks: Adapter 1 (always host-only adapter) models VLAN_All, Adapter 2 (always internal network named "A") models VLAN_A and Adapter 3 (always internal network named "B") models VLAN_B. IPs are then set accordingly within the hosts. However, VLAN_A and VLAN_B do not work as expected: PC_A1 can reach only PC_B2 (and vice versa) using the VLAN_A or VLAN_B IPs. PC_A2 and PC_B1 do not reach any other PC on VLAN_A or VLAN_B IPs.
Is this a known limitation or bug, or am I using the wrong approach, or something else?
Any help is highly appreciated!