Setting Static MAC Addresses
Here's my version of how-to set static MAC addresses in VI3 VMs.- Select a static MAC. NOTE: Static MAC addresses must be in the range of 00:50:56:00:00:00-00:50:56:3F:FF:FF to work with this procedure.
- Remember to record the Static MAC addresses registered for future reference.
- Unregister vm:
- Note the datastore, vm inventory folder, and name for the vm in the summary tab
- Power down the virtual machine
- Right click the vm and select remove from inventory
- Edit vmx:
- Ssh to the esx host system (use putty)
- cd /vmfs/volumes/
- cd to the system’s folder
- cp
.vmx to .vmx.bak - vi
.vmx - find the ethernet0 section
- make the following changes:
- change ethernet0.addressType = "vpx" to ethernet0.addressType = "static"
- ethernet0.generatedAddress = "00:50:56:01.01.00" to ethernet0.address = "00:50:56:01.01.00"
- rearrange so the following items are in this order and grouped together: ethernet0.address, ethernet0.addresstype, uuid.location, uuid.bios
- Write the changes to the disk and exit
- Reregister the vm:
- In virtual center, browse to the host datastore (configuration, storage, double click on the vm’s datastore)
- Browse to the edited .vmx file
- Right click the .vmx file and select Add to Inventory
- Enter the system name
- Select the host
- Select the resource pool
- Click Finish
- Power on the vm and verify the mac address
- Windows: ipconfig /all find “Physical Address”
- Linux: ifconfig /a grep Hwaddr
EXAMPLE
ethernet0.address = "00:50:56:88:6f:98"
ethernet0.addressType = "static"
uuid.location = "56 4d 6b b4 70 cc 85 24-59 1b 2d 24 0a 2b d7 7a"
uuid.bios = "50 08 5b 0d e1 f7 fb 8b-ba 39 74 1b 30 fc 0c 40"
Archives
10/01/2006 - 11/01/2006 | 03/01/2007 - 04/01/2007 | 04/01/2007 - 05/01/2007 | 05/01/2007 - 06/01/2007 | 06/01/2007 - 07/01/2007 | 07/01/2007 - 08/01/2007 | 09/01/2007 - 10/01/2007 | 10/01/2007 - 11/01/2007 | 11/01/2007 - 12/01/2007 | 12/01/2007 - 01/01/2008 | 01/01/2008 - 02/01/2008 | 02/01/2008 - 03/01/2008 | 03/01/2008 - 04/01/2008 |