exam questions

Exam 70-743 All Questions

View all questions & answers for the 70-743 exam

Exam 70-743 topic 1 question 16 discussion

Actual exam question from Microsoft's 70-743
Question #: 16
Topic #: 1
[All 70-743 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
If the container host is virtualized, and you wish to use DHCP for IP assignment, you must enable MACAddressSpoofing.
PS C:\> Get-VMNetworkAdapter -VMName ContainerHostVM | Set-VMNetworkAdapter -MacAddressSpoofing On
The command needs to be run on the Hyper-V host.
References: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/management/container_networking

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Guest
Highly Voted 5 years, 3 months ago
Answer C can't be correct because it runs the command to set the VM1 against VM1, and not against the VMHost for VM1
upvoted 9 times
supertech79
4 years, 3 months ago
If the container host is virtualized, and you need to use DHCP for the IP address assignment, then you must also use MAC address spoofing on the VM network adapter. Without MAC address spoofing, the Hyper-V host blocks the network traffic from the containers in the VM with identical MAC addresses. Get-VMNetworkAdapter -VMName ContainerHost | Set-VMNetworkAdapter -MacAddressSpoofing On That's from the MS Press book on 70-743. ContainerHost is VM1 and Server1 is hosting the ContainerHost VM.
upvoted 3 times
...
...
smp
Most Recent 3 years, 10 months ago
Answer is correct, it needs to run on the host server (Server1) https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/deploy-containers-on-server - exact directions are towards bottom of page with explanation.
upvoted 1 times
...
Chourak
4 years ago
How you going to run "Set-VMNetworkAdapter" with the parameter -VMName on a VM? It doesn't make any sense, because you specify the -VMName on a host not on a guest. D is correct.
upvoted 1 times
...
indylmc
5 years, 5 months ago
PS C:\> Get-VMNetworkAdapter -VMName * Gets virtual network adapters from all virtual machines on the local Hyper-V host.
upvoted 2 times
...
RGB
5 years, 5 months ago
According to Microsoft, the answer should be C. https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/advanced To use DHCP for IP assignment on a virtual container host enable MACAddressSpoofing If the container host is virtualized, and you wish to use DHCP for IP assignment, you must enable MACAddressSpoofing on the virtual machine's network adapter. Otherwise, the Hyper-V host will block network traffic from the containers in the VM with multiple MAC addresses. You can enable MACAddressSpoofing with this PowerShell command: PS C:\> Get-VMNetworkAdapter -VMName ContainerHostVM | Set-VMNetworkAdapter -MacAddressSpoofing On
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago