Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Virtual machine MAC address conflicts or have a duplicate MAC Address when creating a virtual machine (1024025)

Last Updated: 8/23/2021Categories: TroubleshootingTotal Views: 245866Language:
Chinese (Simplified)JapaneseEnglish

21 like this article

Subscribe to get an email
newsletter with new updates

21 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Details

Each vCenter Server system has a vCenter Server instance ID. This ID is a number between 0 and 63 that is randomly generated at installation time, but can be reconfigured after installation.

vCenter Server uses the instance ID to generate MAC addresses and UUIDs for virtual machines. If two vCenter Server systems have the same vCenter Server instance ID, they might generate identical MAC addresses (duplicate MAC address) for virtual machines. This can cause conflicts if the virtual machines are on the same network, leading to packet loss and other problems.

When creating a new virtual machine, the MAC address is duplicated.

Virtual machines power on and function properly, but share a MAC address with another virtual machine.

This issue can occur if the amount of new virtual machines being deployed has exceeded the default pool of MAC addresses. This causes vCenter Server to start reusing already assigned MAC addresses.

Solution

If you deploy virtual machines from multiple vCenter Server systems to the same network, you must ensure that these vCenter Server systems have unique instance IDs. When you change the vCenter Server Unique ID, the autogenerated MAC addresses are different.

Note: A vCenter Server unique ID has 4 parts such as (This is not a MAC address):

00:50:56:xx

The first three parts never change. This is the VMware Organizational Unique Identifier (OUI). When you change the vCenter Server unique ID with the steps in this article, only the fourth part changes.

Note: Changing the vCenter Server ID does not result in address changing for existing virtual machines. Virtual machines created or new network adapters added after the change gets the updated address.

To view or change the vCenter Server instance ID using the vSphere Client:

Log in to vCenter Server using the vSphere Client, and click Administration > vCenter Server Settings.

Click Runtime Settings.

The vCenter Server Unique ID text box displays the current vCenter Server instance ID.

If this ID is not unique, enter a new value between 1 and 63 in the vCenter Server Unique ID text box and click OK.

If you changed the vCenter Server instance ID, you must restart vCenter Server for the change to take effect.

To view or change the vCenter Server instance ID using the vSphere Web Client:

Log in to vCenter Server using the vSphere Client, go to the Hosts and Clusters view and click the vCenter Server instance you want to examine.

Click the Manage tab.

Under Settings, click General.

In the Edit vCenter Server Settings dialog box, expand Runtime Settings.

Note: From vSphere 6.5, you need to click on Monitor -> Settings -> General  to edit vCenter Server settings. You can view or edit the vCenter Server unique ID, the vCenter Server managed address and the vCenter Server name.

If the ID is not unique, click Edit and enter a unique value.

Note: This value can be any number between 0 and 63, this uniquely identifies each vCenter Server system running in a common environment. By default, an ID value is generated at random.

If you changed the vCenter Server instance ID, you must restart vCenter Server for the change to take effect.

If you have existing virtual machines with conflicting MAC addresses, edit the MAC addresses to make them unique.

You can make the MAC addresses unique by using a maintenance window, shutting down the virtual machine experiencing the issue.

To make the MAC addresses unique:

Ensure that the virtual machine is powered off.

In the vSphere Client inventory, right-click the virtual machine and click Edit Settings.

Click the Hardware tab and select the virtual network adapter for the virtual machine.

Under MAC Address, click Manual and enter a unique MAC address.

Click OK.

Restart the VMware VirtualCenter Server service. For more information, see Stopping, starting, or restarting vCenter services (1003895).

Alternatively, you can force vCenter Server to generate a new MAC address for the virtual network adapter by configuring the virtual network adapter to use a Manual MAC address, and then reconfiguring it to Automatic.

If the virtual machine is in production and you cannot shut down the virtual machine for making the configuration changes:

Verify and record the static IP address from virtual machine for the vNIC experiencing the issue.

Remove that virtual network adapter containing the duplicate MAC address from the virtual machine.

Add a new virtual network adapter for the virtual machine.

Apply the recorded static IP address to the newly installed virtual network adapter.

Check the network settings within the guest operating system and verify the connectivity.

To verify if each host in the environment has a unique ID, run this command on each host:

esxcfg-info | grep -i "system uuid"

This VMware Universally Unique Identifier(UUID) generates MAC addresses that are checked for conflicts. MAC Addresses are created by using three parts, the VMware OUI, the SMBIOS UUID or the unique ID of the host and a hash based on the name of the entity that the MAC address is being generated for.
For more information on MAC Address Generation, see:

ESX 2.5 and earlier - See Setting a static MAC address for a virtual NIC

ESX/ESXi 3.x - Advanced Networking: Setting up MAC Addresses section of the Server Configuration Guide

ESX/ESXi 4.x - Advanced Networking: MAC Addresses section of the ESX/ESXi Configuration Guide

Additional Information

To locate a suspected duplicate MAC, run this query on the vCenter Server database and note all entity IDs:

select * from VPX_NIC where MAC_ADDRESS = '00:50:56:xx:yy:zz';

Run this query to find the virtual machine names:

select * from VPX_ENTITY where ID = xxxxx;

To disable the VM MAC Conflict alarm:

Log in to vCenter Server using the vSphere Client, go to the Hosts and Clusters view and click the vCenter Server instance.

Select the Management tab > Alarm Definitions.

Search for VM MAC in search window.

Edit the VM MAC Conflict alarm.

Deselect Enable this alarm.

Click Finish.

For translated versions of this article, see:

日本語: 仮想マシンの作成時に、仮想マシンの MAC アドレスが競合するか、または重複 MAC アドレスが存在する (2089837)

简体中文: 创建虚拟机时，虚拟机 MAC 地址冲突或具有重复的 MAC 地址 (2096672)

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

Take Our Survey

Support Assistant