Home » Microsoft » 70-743 v.2 » What should you do?
You have a Hyper-V host named Server1 that runs Windows Server 2016.
Server1 has a virtual machine named VM1. VM1 is configured to run the Docker daemon. On VM1, you have a container network that uses transparent mode.
You need to ensure that containers that run on VM1 can obtain IP addresses from DHCP. What should you do?
A. On VM1, run docker network connect.
B. On Server1, run docker network connect.
C. On VM1, run Get-VMNetworkAdapter -VMName VM1 | Set-VMNetworkAdapter -MacAddressSpoofing On.
D. On Server1, run Get-VMNetworkAdapter -VMName VM1 | Set-VMNetworkAdapter – MacAddressSpoofing On.
Correct Answer: C
Explanation/Reference:
Explanation/Reference: Explanation:
If the container host is virtualized, and you wish to use DHCP for IP assignment, you must enable MACAddressSpoofing on the virtual machines, not on the Servers, network adapter. Otherwise, the Hyper-V host will block network traffic from the containers in the VM with multiple MAC addresses.
PS C:> Get-VMNetworkAdapter -VMName ContainerHostVM | Set-VMNetworkAdapter -MacAddressSpoofing On
References: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/management/container_networking