Trying to Understand MAC Address with a VM Machine

How does a VM machine change the MAC addresses on a single NIC?  Does the NIC have multiple MAC addresses at any given time?  Is the VM swapping out MAC addresses based on the needed address.  Or, does it work some other way?
jdanaAsked:
Who is Participating?
 
sryckmanConnect With a Mentor Commented:
Remember that the VM does not have a physical NIC.   You may have mapped the virtual machine's virtual NIC to a physical NIC - but in the virtual machine it's just software.   The physical NIC on the machine just acts as a switch and forwards the traffic.   Thus the MAC address for a VM can be whatever the VM wants it to be.
0
 
ashwin_kumar525Connect With a Mentor Commented:
The MAC address will be dynamically generated for each VM you mount. You can also set it to static if you want. This is not only for VMs, we can also change the MAC for your physical machine using third party softwares.
0
 
ranit8Connect With a Mentor Commented:
"The physical NIC on the machine just acts as a switch and forwards the traffic."

What sryckman said is right, and there are 2 possible ways, depending on the implementation:

Either the host works as an ARP PROXY so the external network machines send traffic directed to the VM guests's IP address to the host's MAC address, and the host sends it to the VM with the VM's MAC address as destination (much like NAT, but a layer below).

Or the host physical NIC is set at promiscuous mode, so whenever the address of the received frame matches the physical MAC or one of the virtual machines MAC, the frame is processed accordingly.
0
 
jdanaAuthor Commented:
sryckman - Thanks for the clear summary.  
ranit8 - Thanks for the definition of ARP PROXY and promiscuous mode.  Both concepts are now in my notes.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.