Server Administration

A hypervisor's physical switch port trunks VLANs 20 and 30, and management uses VLAN 20. A new VM has correct VLAN 30 IP settings but connects to a VLAN 20 port group; what should the administrator change?

Show the answer

Correct answerB. Assign the VM to a VLAN 30 port group

AWhy not this: Changing the gateway does not move the VM's traffic from VLAN 20 to VLAN 30.

BWhy this is right: The port group's VLAN assignment must match the VLAN intended for the VM's traffic.

CWhy not this: Access VLAN 30 would stop the physical link from carrying both VLANs and disrupt management connectivity.

DWhy not this: A broader subnet mask does not join separate Layer 2 VLANs.

The VM must connect to a port group assigned to VLAN 30; the physical trunk already carries that VLAN. Changing the physical port to access VLAN 30 would remove the trunk needed to carry management VLAN 20.