Solved

VMware - Assign same IP Address to guest Machines using MAC

Posted on 2013-11-12
8
707 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 121

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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 121
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 121
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 121
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

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

Question has a verified solution.

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

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

691 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