Solved

VMware - Assign same IP Address to guest Machines using MAC

Posted on 2013-11-12
8
705 Views
Last Modified: 2013-11-12
Hi,
I have number of VMware machines under vmware workstation.

1. I personally don't want to use Static ip due to some networking issues I have.  But I need to assign them same dynamic IP address every single time. How do I do it?

2. Is there a DNS  service built within VMware workstation I can use?

Thanks
0
Comment
Question by:crazywolf2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39641265
VMware Workstation, does have a DHCP Service, if you use NAT or Host mode networking.

Select the Virtual Network Editor, in your VMware Application Folder.

see here

http://www.vmware.com/support/ws55/doc/ws_net_advanced_ipaddress.html

1. Assign a very long Max Lease time.

2. Do you mean DHCP or DNS?
0
 

Author Comment

by:crazywolf2010
ID: 39641282
Hi,

1. Assign a very long Max Lease time.
>> Where do I find settings for this?

2. Do you mean DHCP or DNS?
>> I possibly need both.
Mainly DHCP so there is always same IP assigned to a machine,.
DNS will help me to address machine with their names than IPs.

Thanks
0
 

Author Comment

by:crazywolf2010
ID: 39641286
Are you talking about the lease time here?

C:\greenshot\2013-11-12 11_31_57-Virtual Network Editor.png
0
Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

 
LVL 120
ID: 39641309
That's correct, set the default and max lease times, to a very long value, this will ensure your VMs, keep the same IP Address for a very long time. e.g. = static

VMware Workstation does not include DNS.

a simple hosts file copied around your VMs, is the most basic DNS, as IP Addresses will remain static, otherwise you would have to rely on DNS provided by Windows OS or Linux OS.
0
 

Author Comment

by:crazywolf2010
ID: 39641336
Hi,
The max lease is for 63 days. This is OK for time being but I am sure my VM machines will be there for years/months. Is there no other way?

Thanks
0
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 39641370
You can make a DHCP VM. Disable NAT and DHCP service from VMware.

In your DHCP VM, you can set an IP reservation for the MAC. Let me know if you want to do this with a windows DHCP. Windows DHCP will need a active directory environment (It needs to be authorized in the AD)
0
 
LVL 120
ID: 39641382
How DHCP works, is it will contact the DHCP server, an IP addresses will be leased for 63 days, and then after 30 days, it will ask for the lease again.

So a 63 day lease is really infinity!

It's unlikely it's going to change, if the VM is on all the time, and you do not use all the IP Leases!

How many VMs do you have hundreds?
0
 
LVL 120
ID: 39641384
or you could use

http://www.dhcpserver.de/dhcpsrv.htm

or

http://sourceforge.net/projects/dhcpserver/

or

http://tftpd32.jounin.net/

also inlcudes DNS!

for FREE, with no Active Directory, or Windows Server licensing cost!

Depends on how you want to do DHCP, you could also do it with your Wireless Router, for Internet!

But your question asked how to do it with VMware Workstation!
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VMware - Migrating 1 51
Vcenter and vSphere licensing renewal question ? 10 109
Recovering deleted VM in vSphere 6.x 5 66
Installing Windows 10 on USB via VMware 10 61
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question