To set a static MAC address for a virtual machine, you can edit the configuration file of the virtual machine by using the vSphere Web Client.
Procedure
- Locate the virtual machine in the vSphere Web Client.
- Select a data center, folder, cluster, resource pool, or host and click the VMs tab.
- Click Virtual Machines and double-click the virtual machine from the list.
- Power off the virtual machine.
- On the Configure tab of the virtual machine, expand Settings and select VM Options.
- Click Edit and expand Advanced from the VM Options tab within the dialog box displaying the settings.
- Click Edit Configuration.
- To assign a static MAC address, add or edit parameters as required.
Parameter |
Value |
ethernetX.addressType |
static |
ethernetX.address |
MAC_address_of_the_virtual_NIC |
X next to ethernet stands for the sequence number of the virtual NIC in the virtual machine.
For example,
0
in
ethernet0 represents the settings of the first virtual NIC device added to the virtual machine.
- Click OK.
- Power on the virtual machine.