Two VMs each have one virtual network adapter connected to the same internal Hyper-V virtual switch. VM1 uses access VLAN 10, and VM2 uses access VLAN 20. Their guest IP addresses are distinct and valid for the same IP subnet, and their firewalls permit the required traffic. No router is connected.
The VMs must communicate directly without adding routing. VM1 must retain VLAN ID 10.
Which VLAN assignment should you configure?
Different VLAN IDs place the adapters in separate logical networks. Without a router, the VMs need the same VLAN assignment for the required direct communication. Assigning VLAN 10 to both adapters also preserves VM1's required VLAN.
- Not correct: VM1: VLAN 20; VM2: VLAN 20. Placing both VMs in one VLAN removes the separation described in the source, but this assignment changes VM1 to VLAN 20.
- Not correct: VM1: VLAN 10; VM2: VLAN 20. This leaves the VMs in different VLANs. The source states that communication between VLANs requires a router, which this scenario excludes.
- Not correct: VM1: VLAN 10; VM2: VLAN 30. The VMs would still occupy different VLANs. According to the source, moving traffic between those logical networks requires routing.
- Correct: VM1: VLAN 10; VM2: VLAN 10. This removes the VLAN boundary while preserving VM1's required assignment. The source describes VLANs as separate logical networks.
- Configure and manage Hyper-V: Configure Hyper-V networkingMicrosoft Learn