An unusual reason to enable MAC spoofing

An unusual reason to enable MAC spoofing

Rate This
  • Comments 2


By default, Hyper-V will not let software inside of a virtual machine attempt to generate network traffic with a MAC address other than the address that Hyper-V has assigned to the virtual machine (known has MAC address spoofing).  The reason why this is not allowed by default is that it is relatively uncommon to need to do this, and MAC address spoofing can be used for malicious purposes.

However, I found that I needed to enable this on one of my virtual machines recently.

For a while now I have been running Hyper-V on my primary desktop system – which means I have been unable to run Virtual PC on it directly.  I have a couple of other computers handy (including my laptop) where I run Virtual PC instead.  But there are times when I am working on my desktop computer – and I do not want to switch to another computer in order to confirm something about Virtual PC.  To solve this problem – I simply run Virtual PC inside a Hyper-V virtual machine!

This has been working fine for me – and I have mostly been using Windows XP mode with the default settings.  But the other day I needed to do some advanced networking operations, that would not work with the default network setting of using Shared Networking (NAT).  After changing the virtual machine to use the host network adapter directly – I was surprised to see that I was unable to get an IP address from my DHCP server:

image

It took me a while to figure it out – but Virtual PC uses MAC address spoofing in order to generate network traffic that looks like it is coming from the virtual machine (and not from the host).  I quickly enable MAC address spoofing and everything was good-to-go.

For the curious – the user interface for enabling this setting can be found on the network settings page on Windows Server 2008 R2:

image

And under the Advanced Features section of the network settings page on the Windows 8 Developer Preview (which is what I am running at home at the moment):

image

Cheers,
Ben

Leave a Comment
  • Please add 7 and 8 and type the answer here:
  • Post
  • "For a while now I have been running Hyper-V on my primary desktop system – which means I have been unable to run Virtual PC on it directly."

    Is there some technical limitation that Hyper-V and WVPC cannot coexist or you meant because you were unable to run WVPC, you were using Hyper-V? Is VPC 2007 and WVPC going to be made compatible with Windows 8?

  • The need for XP Mode and the problems that it solves won't be going away in the Windows 8 timeframe.  

    Will there still be an XPMode capability in Windows 8?  

    Hopefully, since Windows 8 includes native Hyper-V support, Windows 8 XPMode will leverage Hyper-V and make WVPC no longer needed...  True?

Page 1 of 1 (2 items)