PrepAway - Latest Free Exam Questions & Answers

You need to ensure that containers that run on VM1 can …

You have a Hyper-V host named Served 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?

PrepAway - Latest Free Exam Questions & Answers

A.
On VM1, run docker network connect.

B.
On Server1runGet-VMNetworkAdapter-VMName VM1| Set-VMNetworkAdapter-MacAddressSpoofing On.

C.
On Server1, run docker network connect.

D.
On VM1, run Get-VMNetworkAdapter-VMName VM1| Set-VMNetworkAdapter-MacAddressSpoofing On.

6 Comments on “You need to ensure that containers that run on VM1 can …

  1. Traveler5 says:

    It is B. If you try and run just “Get-VMNetworkAdapter-VMName VM1” from within a VM, it won’t work. It has no idea what VM1 is, even if it is VM1. VM1 is a name identified by the Hyper-V host which is why running that command on the host will give a result. Plus, when you think about it, no MAC spoofing is even occurring as far as VM1 is aware. It has a Container that is sending out a MAC address and that is to be expected since all machines send out MAC addresses. What is weird is on the host side because it is seeing VM1 sending out a MAC address that doesn’t belong to it (the containers MAC address). The host has no idea that VM1 has a container on it and will consider it a spoofed MAC address. Therefore, it is the host (Server1 in this case) that you need to run this command on.




    11



    0
  2. dziri says:

    Correct B:

    Configure media access control (MAC) address spoofing
    *****************************************************
    If your container host is virtualized, you must enable MAC address
    spoofing. For example, you can type the following Windows PowerShell
    command, and then press Enter:

    Get-VMNetworkAdapter -VMName Container Host VM | Set-VMNetworkAdapter -MacAddressSpoofing On




    4



    0
  3. Mohamed Abdu says:

    correct answer is B
    even if we thought that VM1 has windows 2016 and even thought if we supposed it know GET-VMnetwork without setting mac spoofing from host it will not work




    3



    0

Leave a Reply