We help IT Professionals succeed at work.

Have host machine assign IP address to VM (guest)

1,282 Views
Last Modified: 2013-12-05
I'm setting up over 100 VM machines on one host, but I only have about 30 IP address available.
I don't plan on having more then 20 VM's turned on at the same time, so I would like to configure the host so that it would assign an available IP address to the VM when it starts up.

The host machine is a Windows 2003 Server, and all the VM's are Windows 2003 and higher.

The available 30 IP addresses are within the same subnet as the host IP.

How can I configure the host so that it assigns the IP address?

Comment
Watch Question

CERTIFIED EXPERT

Commented:
>>I don't plan on having more then 20 VM's turned on at the same time
If you make sure only 20 VMs has been using at the same time.. Just start DHCP server and set the range of 30 IP addresses. So that DHCP will assign and auto release IP for VM machine.

AxterSenior Software Engineer
CERTIFIED EXPERT

Author

Commented:
>>If you make sure only 20 VMs has been using at the same time.. Just start DHCP server and set the range of 30 IP addresses. So that DHCP will assign and
>>auto release IP for VM machine.

That sounds good, but how do I start a DHCP server, and how do I set the range?
AxterSenior Software Engineer
CERTIFIED EXPERT

Author

Commented:
I've tried setting up the DHCP on the host, but it didn't work.
I'm sure I'm doing something wrong, and there are a few fields in which I'm not sure what there values should be.

I'm assuming this should be a Scope that falls under the server name in the DHCP GUI option window.
My server (host) is Axter, and it's IP address is 172.19.55.100.
For test purposes, let say I'm interested in issuing IP addresses 172.19.55.200 through 172.19.55.204.

I have the following DHCP fields in which I'm uncertain of the required values:

DHCP->Axter->Scope[xx-xx]MyScope->Scope Options->Rounter
DHCP->Axter->Scope[xx-xx]MyScope->Scope Options->DNS Servers
DHCP->Axter->Scope[xx-xx]MyScope->Scope Options->DNS Domain Name
DHCP->Axter->Scope[xx-xx]MyScope->Scope Options->WINS/NBNS Servers

How do I set VMWare to look at the host DHCP?

AxterSenior Software Engineer
CERTIFIED EXPERT

Author

Commented:
I was able to figure out what I was doing wrong.
I had to authorize the DHCP server.

I'm now able to get automatic assignments, but I notice the leasing period last longer then what I assigned it to.

For testing purposes, I set the lease duration to 10 minutes.
I then turned on 5 machines, to use up the 5 available IP address.
I then shut them down, and waited for 15 minutes.
I expected to have the IP's available to the new VM I started, but it still had the IP leased to the previous 5 VM machines, even though they were turned off for 15 minutes.

How does the lease duration work to recycle the IP's?
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
AxterSenior Software Engineer
CERTIFIED EXPERT

Author

Commented:
>>Microsoft Windows does not do this.

You wouldn't happen to know of any windows program I can run to send this message?
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.