<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx</link><description>In a physical only world, you don’t usually have to worry about MAC addresses that much as each NIC vendor carves off a MAC address from their ranges which have been allocated to them. However, in a virtual environment, you have to be a little more careful,</description><dc:language>en-GB</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3089495</link><pubDate>Wed, 16 Jul 2008 10:00:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3089495</guid><dc:creator>Polk</dc:creator><description>&lt;p&gt;John, so if Hyper-V is immune to MAC duplication, how did you get the timeouts on MAC collision ping in the very first screenshot?&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3089682</link><pubDate>Wed, 16 Jul 2008 17:51:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3089682</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Polk - yes, good question and one which I didn't make clear above. I was using a second server running the Hyper-V role with a virtual machine on it configured with a duplicate MAC.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3089893</link><pubDate>Thu, 17 Jul 2008 02:14:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3089893</guid><dc:creator>omar</dc:creator><description>&lt;p&gt;So one question I cant seem to get answered- If we leave a Hyper-V guest network as dynamic MAC- will it ever change if that system is rebooted or shutdown, etc?&lt;/p&gt;
&lt;p&gt;I have had issues with two Hyper-V servers on the same LAN with several guests a piece and I have had broadcast storms and strange issues that have yet to be explained but when I run an arp -a command all the host and guest have different MACs.&lt;/p&gt;
&lt;p&gt;I was going to restart the hosts and see if these MACs remain the same or not.&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3089898</link><pubDate>Thu, 17 Jul 2008 02:24:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3089898</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Omar - no, the dynamic MAC address once allocated will not change, so if all VMs have unique MAC addresses, I wouldn't expect to see what you are seeing. Is it possible that there are other Hyper-V boxes elsewhere on the network which are conflicting?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3090750</link><pubDate>Fri, 18 Jul 2008 15:57:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3090750</guid><dc:creator>Craig</dc:creator><description>&lt;p&gt;Here is any idea, MS design a product that doesn't have these limitations. &amp;nbsp;You don't have to worry about MAC duplication in a VMWare ESX environment. &amp;nbsp;This is just typical MS &amp;quot;features&amp;quot; that are only half baked, but the MS bigots can see no faults.&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3090848</link><pubDate>Fri, 18 Jul 2008 19:50:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3090848</guid><dc:creator>jhoward</dc:creator><description>&lt;P&gt;Craig&lt;/P&gt;
&lt;P&gt;Thank you for your comment. Unfortunately, without a higher management layer spanning multiple ESX servers (eg Virtual Center server), ESX suffers from exactly the same problem. Of course, feel free to correct me if you believe me to be incorrect. I am more than open to a discussion - if you want to take this offline, you can email me directly using the email link at the top of my blog.&lt;/P&gt;
&lt;P&gt;The reasons I believe you are incorrect are based on documentation from both VMWare, Cisco plus a thread on the VMWare communities forum:&lt;/P&gt;
&lt;P&gt;VMWare Infrastucture 3 Online library - ESX Server 3 Edition (&lt;A href="http://pubs.vmware.com/vi35/wwhelp/wwhimpl/js/html/wwhelp.htm" target=_new rel=nofollow&gt;http://pubs.vmware.com/vi35/wwhelp/wwhimpl/js/html/wwhelp.htm&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;- Expand nodes out through ESX Server 3 Configuration Guide&lt;/P&gt;
&lt;P&gt;- Advanced Networking&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Setting up MAC Addresses&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - MAC Address Generation.&lt;/P&gt;
&lt;P&gt;The particular part is at the end of fourth paragraph: "The algorithm puts a limit on the number of running and suspended virtual machines at any one time on any given server. &lt;EM&gt;It also does not handle all cases when virtual machines on distinct physical machines share a subnet&lt;/EM&gt;."&lt;/P&gt;
&lt;P&gt;The full section:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;MAC Addresses Generation&lt;/P&gt;
&lt;P&gt;Each virtual network adapter in a virtual machine is assigned its own unique MAC address. A MAC address is a six-byte number. Each network adapter manufacturer is assigned a unique three-byte prefix called an OUI (Organizationally Unique Identifier) that it can use to generate unique MAC addresses. &lt;/P&gt;
&lt;P&gt;VMware has the following OUIs:&lt;/P&gt;
&lt;P&gt;• One for generated MAC addresses. &lt;/P&gt;
&lt;P&gt;• One for manually set MAC addresses. &lt;/P&gt;
&lt;P&gt;• One that was previously used for legacy virtual machines, but is no longer used with ESX Server 3. &lt;/P&gt;
&lt;P&gt;The first three bytes of the MAC address that is generated for each virtual network adapter are comprised of the OUI. This MAC address-generation algorithm produces the other three bytes. The algorithm guarantees unique MAC addresses within a machine and attempts to provide unique MAC addresses across machines.&lt;/P&gt;
&lt;P&gt;The network adapters for each virtual machine on the same subnet should have unique MAC addresses. Otherwise, they can behave unpredictably. The algorithm puts a limit on the number of running and suspended virtual machines at any one time on any given server. It also does not handle all cases when virtual machines on distinct physical machines share a subnet.&lt;/P&gt;
&lt;P&gt;The VMware Universally Unique Identifier (UUID) generates MAC addresses that are checked for any conflicts. The generated MAC addresses are created by using three parts: the VMware OUI, the SMBIOS UUID for the physical ESX Server 3 machine, and a hash based on the name of the entity that the MAC address is being generated for.&lt;/P&gt;
&lt;P&gt;After the MAC address is generated, it does not change unless the virtual machine is moved to a different location, for example, to a different path on the same server. The MAC address in the configuration file of the virtual machine is saved. All MAC addresses that have been assigned to network adapters of running and suspended virtual machines on a given physical powered-off virtual machine is not checked against those of running or suspended virtual machines. It is possible but unlikely that when a virtual machine is powered on again, it can acquire a different MAC address. This acquisition is due to a conflict with a virtual machine that was powered on when this virtual machine was powered off.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;VMWare Infrastructure 3 in a Cisco Network Environment &lt;A href="http://www.cisco.com/en/US/docs/solutions/Enterprise/Data_Center/vmware/VMware.html#wp696203" target=_new rel=nofollow&gt;http://www.cisco.com/en/US/docs/solutions/Enterprise/Data_Center/vmware/VMware.html#wp696203&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Without quoting the whole section, the relevant part under vNIC MAC Addresses, Bootup, VMotion Migration states "The vNIC MAC addresses include the Organization Unique Identifiers (OUI) assigned by IEEE to VMware. The ESX host and the configuration filename information is used to create a vNIC MAC address. The OUIs used by VMware are 00-50-56 and 00-0c-29. The algorithm used to generate the MAC address reduces the chances of a MAC address collision, &lt;EM&gt;although the process cannot guarantee a MAC address is unique&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;Finally, on the VMWare communities site &lt;A href="http://communities.vmware.com/thread/147630" target=_new rel=nofollow&gt;http://communities.vmware.com/thread/147630&lt;/A&gt; this thread indicates how you configure a higher layer management server spanning multiple servers (Virtual Centre Server) using vpx generated MAC addresses.&lt;/P&gt;
&lt;P&gt;This is the reason I mentioned in my article why managing MAC addresses spanning multiple virtualization servers (eg using SCVMM 2007 for Hyper-V/Virtual Server and ESX, Virtual Centre Server for ESX) is important. &lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR&gt;John.&lt;/P&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3093862</link><pubDate>Sat, 26 Jul 2008 01:18:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3093862</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;So is it possible for the host machine to be a kind of &amp;quot;NAT&amp;quot; box, therefore the guest OS uses the physical NIC MAC address instead of it's own dynamically created one?&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3093869</link><pubDate>Sat, 26 Jul 2008 01:50:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3093869</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Bryan - No, this is is not possible.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3158309</link><pubDate>Sun, 23 Nov 2008 20:34:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3158309</guid><dc:creator>������ ������</dc:creator><description>&lt;p&gt;������������� ������ ����������. ����� � ������ ������. ������ ������ ���������.&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3196911</link><pubDate>Wed, 04 Feb 2009 15:33:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3196911</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Thanks for the article John, &amp;nbsp;I now understand what has been happening with the MAC address generation on my sysprep cloned hyper-v servers.&lt;/p&gt;
&lt;p&gt;It seems that these registry entries were just copied from the template system, the MAC addresses as a result were all based on the template systems original IP address and were starting to come out with the same MAC addresses on different clones.&lt;/p&gt;
&lt;p&gt;It looks like hyper-v doesn't currently check dynamically whether these max and min entries still match the current machine address.&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3197059</link><pubDate>Wed, 04 Feb 2009 19:40:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3197059</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Chris - yes, that would be correct. We don't have a sysprep provider implemented in Hyper-V v1 (2008), so you would have clashing ranges in each of the clones.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3198635</link><pubDate>Sat, 07 Feb 2009 19:26:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3198635</guid><dc:creator>Isambert Patrick</dc:creator><description>&lt;p&gt;When connecting two physical machines with hyper-V for a demo (ie one network card shared for physical and virtual machine), ipconfig/all say that the two notebooks have the same MAC Address for physical computer.&lt;/p&gt;
&lt;p&gt;To be sure, we have made a reservation in DHCP. When the first boot, it takes the reserved IP address. When the second boot, it take the same ip address.... &lt;/p&gt;
&lt;p&gt;Do you know this problem ? How can we fix it ?&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3199473</link><pubDate>Mon, 09 Feb 2009 21:39:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3199473</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Isambert - I would not expect two physical computers to have the same MAC address - very unlikely. I can think of one situation where it is possible due to a bug in Hyper-V for the virtual NIC in the parent partition to take on a MAC address from the internal pool MACs for VMs that we maintain.&lt;/p&gt;
&lt;p&gt;Can you confirm the MAC addresses which are clashing start 00-15-5D (the default range for our pool); that these are virtual NICs rather than physical nics in the parent (ipconfig /all will list the adapter as Microsoft Virtual Network Switch Adapter #n); the steps in Hyper-V Manager you went through to create the external virtual network switch (I suspect you created an internal virtual network, then changed it to external).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3214496</link><pubDate>Wed, 18 Mar 2009 09:24:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3214496</guid><dc:creator>RMiller</dc:creator><description>&lt;p&gt;I am experiencing this issue within our Hyper-V Cluster (4 servers) running about 25 VM's. &amp;nbsp;When we had the network down for maint, the cluster shut down and saved the VM's state. &amp;nbsp;When the network was restored, we experienced intermittent issues with access to VM's and even the Hyper-V Parent Partition. &amp;nbsp;We have MAC management set to automatic. &amp;nbsp;The VM's primarily use the same subnet. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;It appears that based on the above comments, we should be manually managing the MACs (BUMMER! )&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3223038</link><pubDate>Mon, 06 Apr 2009 20:46:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3223038</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;John-&lt;/p&gt;
&lt;p&gt;Thanks for the article.&lt;/p&gt;
&lt;p&gt;Also, can you let me know or point to some article which talk about where are these MAC address for VMs stored in WMI of Hyper V server.&lt;/p&gt;</description></item><item><title>re: Hyper-V: MAC Address allocation and apparent network issues MAC collisions can cause</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3223065</link><pubDate>Mon, 06 Apr 2009 21:39:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3223065</guid><dc:creator>jhoward</dc:creator><description>&lt;p&gt;Sachin - take a look at the WMI documentation for msvm_virtualswitchmanagementservice &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/cc136938"&gt;http://msdn.microsoft.com/en-us/library/cc136938&lt;/a&gt;(VS.85).aspx.&lt;/p&gt;
&lt;p&gt;Specifically the CreateInternalEthernetPort* methods.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>New in Hyper-V Windows Server 2008 R2 Part 2 – MAC Spoofing</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3244234</link><pubDate>Thu, 21 May 2009 21:42:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3244234</guid><dc:creator>John Howard - Hyper-V and virtualization blog</dc:creator><description>&lt;p&gt;Our Virtual Switch got smarter in Windows Server 2008 R2. In Windows Server 2008, VMs are susceptible&lt;/p&gt;
</description></item><item><title>New in Hyper-V Windows Server 2008 R2 Part 2 – MAC Spoofing</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3245086</link><pubDate>Sun, 24 May 2009 17:51:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3245086</guid><dc:creator>News</dc:creator><description>&lt;p&gt;Our Virtual Switch got smarter in Windows Server 2008 R2. In Windows Server 2008, VMs are susceptible&lt;/p&gt;
</description></item><item><title>New in Hyper-V Windows Server 2008 R2 Part 2 – MAC Spoofing</title><link>http://blogs.technet.com/jhoward/archive/2008/07/15/hyper-v-mac-address-allocation-and-apparent-network-issues-mac-collisions-can-cause.aspx#3245557</link><pubDate>Tue, 26 May 2009 09:13:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3245557</guid><dc:creator>HyperVoria</dc:creator><description>&lt;p&gt;John Howard: Our Virtual Switch got smarter in Windows Server 2008 R2. In Windows Server 2008, VMs are susceptible to MAC spoofing. MAC spoofing is where a (generally) malicious machine pretends to be another machine on a network (there are legitimate&lt;/p&gt;
</description></item></channel></rss>