N10-005 · Question #804
An administrator has created several virtual machines on the same host server and requires them to each be on separate VLANs. Which of the following should the administrator configure to meet this…
The correct answer is B. Create each VLAN on the host's virtual switch. Virtual machines on the same physical host are isolated into separate VLANs by configuring VLAN assignments on the hypervisor's virtual switch, which enforces Layer 2 segmentation between VM port groups. This is the correct and standard virtualization approach.
Question
An administrator has created several virtual machines on the same host server and requires them to each be on separate VLANs. Which of the following should the administrator configure to meet this goal?
Options
- ASet the VLAN preferences on the host's NIC
- BCreate each VLAN on the host's virtual switch
- CChange the virtual machine NIC settings from private to bridged
- DCreate each VLAN on the host's gateway router
How the community answered
(40 responses)- A18% (7)
- B70% (28)
- C8% (3)
- D5% (2)
Why each option
Virtual machines on the same physical host are isolated into separate VLANs by configuring VLAN assignments on the hypervisor's virtual switch, which enforces Layer 2 segmentation between VM port groups. This is the correct and standard virtualization approach.
Configuring a VLAN on the host's physical NIC applies a single VLAN tag to all traffic from that NIC and does not create per-VM VLAN separation for guests residing on the same host.
A virtual switch (vSwitch) in hypervisors such as VMware vSphere or Hyper-V supports VLAN tagging via port groups or virtual network adapters. Assigning each VM to a port group configured with a distinct VLAN ID causes the virtual switch to tag egress frames appropriately, providing complete Layer 2 isolation between VMs without requiring separate physical NICs.
Changing VM NIC settings to bridged mode connects the VM directly to the physical network segment but does not create VLAN-based separation between the virtual machines.
Configuring VLANs on the gateway router handles inter-VLAN routing at Layer 3, but the prerequisite Layer 2 VLAN segmentation for the VMs must first be established on the virtual switch.
Concept tested: VLAN configuration on a hypervisor virtual switch
Source: https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/plan/plan-hyper-v-networking-in-windows-server
Topics
Community Discussion
No community discussion yet for this question.