Solved

VMware - Assign same IP Address to guest Machines using MAC

Posted on 2013-11-12
8
695 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 118

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 118
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
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…

932 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

10 Experts available now in Live!

Get 1:1 Help Now