Solved

VMware - Assign same IP Address to guest Machines using MAC

Posted on 2013-11-12
8
691 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
  • 4
  • 3
8 Comments
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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
 
LVL 117
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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 23

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 117
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 117
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now