Question
You have a Hyper-V host named Server1 that is connected to a managed switch. The switch is connected to multiple VLANs.
On Server1, you configure a new virtual machine named VM1.
You need to configure VM1 to communicate with all the VLANs. Any network traffic that is not tagged must be directed to VLAN 20.
How should you complete the PowerShell command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation
Select cmdlet for VM1 network adapter: Set-VMNetworkAdapterVlan is the Hyper-V cmdlet that sets the VLAN mode (access, trunk, isolated, community, promiscuous or untagged) on a virtual machine's network adapter, which is what controls how VM1 handles 802.1Q tags. Set-VMNetworkAdapter changes general adapter properties such as bandwidth, MAC address spoofing, DHCP guard or VMQ weight and has no VLAN mode parameters. Set-VMNetworkAdapterTeamMapping only maps a VM adapter to a specific physical member of a SET team.
Select VLAN configuration for VM1: -Trunk -NativeVlanId 20. Trunk mode passes tagged frames from multiple VLANs to the guest, so VM1 can communicate with all the VLANs on the managed switch. -NativeVlanId 20 makes VLAN 20 the native VLAN, so untagged traffic is placed on VLAN 20. (In a full command, trunk mode also takes -AllowedVlanIdList to list the allowed VLANs.) -Access -VlanId 20 would limit the adapter to a single VLAN. -Untagged removes VLAN tagging altogether. -VmqWeight is a Set-VMNetworkAdapter queue setting, not a VLAN mode.