VMware Workstation

 View Only
Expand all | Collapse all

How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

  • 1.  How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 02:45 PM
      |   view attached

    Hello Guys,

    I've had created a virtual lab with Server 2008 R2 Configured as DC and DHCP server.

    DC Network Settings:

    Static IP Assigned 192.168.64.10 Default Gateway 192.168.64.2 Preferred/Alternate DNS Server 127.0.0.1

    DHCP Scope:

    Starting IP address 192.168.65.10 Ending 192.168.65.254

    My Problem is, that the PCs in my domain still keep getting others IP address . for example 192.168.64.129 (pics 2 Attached)

    thanks for the help



  • 2.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 02:49 PM

    go to the network configuration editor of the Vmware workstation.Select the vmnetx which is connected to the vm and go on dhcp setting of that nic. Change the IP address range as per your deifned 192.168.65.* range in to start and ending ip address . it will fix your issue.



  • 3.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 03:02 PM
      |   view attached

    Here is the Virtual Network Editor:



  • 4.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 03:08 PM

    My doubt was correct.

    You must select the vmnet 8 and uncheck the "use local dhcp service to distribute ip address to vm.

    Once you unchecked it it will pic your dhcp pool ip automatically.



  • 5.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 03:25 PM
      |   view attached

    I've had Disabled "use local dhcp service to distribute ip address to vm"  + Restart the PCs

    and im still getting a different ip address : 169.168.64.10

    Do i need to restart the DC as well?

    is my DHCP scope is not the problem?



  • 6.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 03:06 PM

    From what you write, your VMs are configured for "NAT" (vmnet8), which has DHCP enabled by default. If you want to ensure that the virtual DC is used (with all the configured options for your virtual domain), you'll have to disable the DHCP service on vmnet8.

    André



  • 7.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 03:30 PM

    you need to do some Windows troubleshooting now.

    1. Check first if your VM is joined in to the domain.?

    2. Check if the DHCP is working correctly. recreate the DHCP pool.

    3. Refresh the network config on your computer. user ipconfig /release and renew command will do it.



  • 8.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 04:20 PM
      |   view attached

    1.the PCs are in the Domain

    2.I've had Recreated the scope

    3.I've had Restarted the DC+PCs in the domain


    But Still the PCs get a different IP address

    What im Doing wrong here?



  • 9.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 04:24 PM

    Please double-check that the DHCP server is authorized.

    André



  • 10.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 04:26 PM

    DC is in which network?

    Can u share the screenshot of ur network configurations editor page by marking the DC andvm in to it to understand the issue deeply.



  • 11.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 04:43 PM

    - DHCP is Authorized  <Attach 5>

    - DC Network Configuration <Attach 6>

    Domain Name: testdomain.net



  • 12.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 04:57 PM

    Strange. seems like there is problem with the NAT connection. Do the following..

    1. create a new network in your network configuration under vmware workstation. and assigned it as NAT.

    2. Assigned that nic to your vm and den release and renew the ip for the vm.

    See if it works.



  • 13.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 05:17 PM
      |   view attached

    iv had created new nic vmnet2 with the same IP as vmnet8  and deleted the old one vmnet8 <attach 7>

    can i turn on the dc?



  • 14.  RE: How to Configure VM's to get IP address from DHCP Server instead of Workstation DHCP

    Posted Jun 28, 2015 06:21 PM

    Starting IP address 192.168.65.10 Ending 192.168.65.254

    Unfortunately I missed the "65" in your initial post. This won't work. With the clients on the same network (NAT in your case) they will only get a lease from a "64" scope. If you need different subnets you'll have to setup a (virtual) router so that the DHCP server recognizes a request from the "65" subnet.

    André