An enterprise data center environment utilizes bare-metal Type 1 hypervisors connected to an upstream physical Layer 3 switch acting as the default gateway for all host subnets. Host-A contains Virtual Machine 1 (VM-1) on VLAN 10 () and Virtual Machine 2 (VM-2) on VLAN 20 (). The virtual switch (vSwitch) running inside Host-A operates strictly as a Layer 2 virtual device with no internal Layer 3 routing interface configured. When VM-1 sends the initial packet to establish a session with VM-2, which network component makes the forwarding decision to route traffic between these two virtual machines?
- The upstream physical Layer 3 switch receives the frame via the trunk link, performs a routing table lookup, and routes the packet back down the trunk to Host-A's vSwitch for delivery to VM-2.Answer
- BThe local Layer 2 vSwitch inspects the destination IP packet header and switches the frame internally between VLAN 10 and VLAN 20 ports without sending traffic out of the physical host interface.
- CThe Type 1 hypervisor directly routes the IP packet between VM-1 and VM-2 within host memory because hosted hypervisors natively execute Layer 3 packet switching without relying on physical network devices.
- DThe CDP/LLDP discovery daemon running on the vSwitch reads the target neighbor's MAC address TLV to establish a direct internal loopback path between the two virtual network interface cards.
Answer
The upstream physical Layer 3 switch receives the frame via the trunk link, performs a routing table lookup, and routes the packet back down the trunk to Host-A's vSwitch for delivery to VM-2.
Because VM-1 and VM-2 are situated on different VLANs ( and ), communication between them requires Layer 3 routing. Since the vSwitch on Host-A is explicitly operating as a Layer 2 switch without L3 capabilities, it cannot route packets between VLANs internally. Therefore, VM-1 sends the packet to its default gateway, causing the frame to exit Host-A via a trunk interface, reach the physical Layer 3 switch where the inter-VLAN routing decision occurs, and return back down the trunk to Host-A for delivery to VM-2.
Step-by-Step Solution
Key Concept
Inter-VLAN Routing and Layer 2 Virtual Switch Boundaries
Estimated Time:2m 0s