change network setting to create in VMware a network

I am setting a small lab for practice purposes. I created in VMware a server and a few computers. Now I want the computers to join the DNS server in order to do this I believe I need to change the network adapter settings on the virtual machines. Can someone guide me thru the process (without losing internet on the virtual machines?
LVL 3
Abraham DeutschIT professionalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
For any Windows or Linux computer, whether physical or virtual, the process is the same, you specify the DNS server IP Address in the DNS Server TCP/IP settings.

If you already have Internet Access, you virtual machines, must already be setup with a DNS server, otherwise, they would not know how to resolve DNS queries for Internet DNS names.
0
Abraham DeutschIT professionalAuthor Commented:
Currently the virtual machines uses the host machine (which is a window 7) to access the internet.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
and what do you want to change ?

What VMware software are you using ?

What network configuration, are your VMs using 0- NAT, Bridged or Host only ?
1
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Abraham DeutschIT professionalAuthor Commented:
The machines should join the gust server
VMware workstation 12 palyer
Net
0
Abraham DeutschIT professionalAuthor Commented:
Sorry Guest
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Okay, so you have some virtual machines guest, hosted using VMware Workstation 12, on a Windows 7 Host.

What is the networking -

1.NAT
2. BRIDGED
3. HOST ONLY

"join" the guest server in what ?

Computers do not join to DNS, Windows computers, can join a Domain, rather than a workgroup.
1
Abraham DeutschIT professionalAuthor Commented:
NAT

Correct I want them to Join the Guest server domain. (sorry for my wrong description)
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Okay, so I assume there is a Domain Controller on the LAN, which the Windows 7 Host is a member of?

You will need to change the network settings of ALL VMs, to BRIDGED.

There will then be on the same LAN as the Host (Windows 7 Host) and Domain Controller, and will get IP Addresses from your DHCP server if you have one.

They Add to Domain as you would a physical computer.
1
Abraham DeutschIT professionalAuthor Commented:
No the window 7 is not part of a domain. its just a laptop getting internet from a hot spot.
What I am trying to accomplish, the guest Vserver should be the Domain controller for the guest Vmachines.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You will need to install a server, which can have a role as a Domain Controller.

Windows 7 cannot be uses as a Domain Controller.

You will need to install Windows Server 2012 R2, and add he Active Directory Role.
1
Abraham DeutschIT professionalAuthor Commented:
I already installed a Vserver and added active directory. now I am trying to figure out how to join the Vmachines to the Vserver domain. thank you so much for your patience guiding me.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay, first ALL VMs, must be set to bridged.

What server did you install ?

did you install the AD Role and DNS ?

what IP Address is the Domain Controller ?

what IP Addresses are you VMs ?

Normally, you would select Add to Domain, when you select This PC or Computer, but ALL your VMs must be in bridged mode, and must have the IP Address of the DNS Server/Domain Controller as their DNS.
1
David Johnson, CD, MVPOwnerCommented:
I get the impression your setup is as follows
Host Machine Windows 7
Guest 1 Windows Server with Active Directory Roles
Guest 2-x Windows Client machines

you have the guests using NAT host machine 192.168.1.xx doesn't matter
Guests in network 192.168.2.x again doesn't matter but the gateway will be the ip of the host machine
So if the ip address of vServer is 192.168.2.10 server dns settings in network adapter 192.168.2.10 and 127.0.0.1
you need to set the network adapter in the clients to not get dns automatically but from 192.168.2.10
1
Abraham DeutschIT professionalAuthor Commented:
If I understand correctly what you are saying is to set the server in net mode not in bridge that Andrew recommended?
0
Abraham DeutschIT professionalAuthor Commented:
Currently the Vserver network setting is net and I have no internet on the server. I changed it to bridge it did not help.Host network setting.Sever network configuration.
0
Abraham DeutschIT professionalAuthor Commented:
Sorry Server network configuration
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
lets work with the Active Directory server at present, and no Internet, we can resolve that later.

leave the vServer VM set to Bridged.

and set all the VMs to bridged.

You then need to ensure that all the VMs, have an IP Address, and DNS Name of he Vserver in their settings.

then add them to domain.
1
Abraham DeutschIT professionalAuthor Commented:
Bridge setingServer network setting
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes, Bridged is correct.

now allocate the same IP address range to other VMs, and make them bridged, and then ensure, they can ping each other.
1
David Johnson, CD, MVPOwnerCommented:
so your dns server is 192.168.16.2  setup a reservation in your dhcp or make that address static
on your clients set the preferred dns set it to 192.168.16.2

Without a gateway you can't access outside of your subnet
1
Abraham DeutschIT professionalAuthor Commented:
Server IP configGuest Vmachine IP config both are set bridge and when I trey joining the Vmachine to the domain Join VMachine to domain
David to you reffer to Forward lookup zone?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
your DNS values are incorrect.

8.8.8.8 is Google no your Active Directory Domain Controller.

127.0.0.1 is also not your Active Directory Domain Controller.

On your clients, that you want to join to a domain, you must put the IP Address of the DNS Server, e.g. Domain Controller, as the DNS server.

that is 192.168.16.2

I would not use a google IP Address 8.8.8.8 in your DNS settings, it will upset AD.

When we get your VMs domain joined and working, we can then sort out the Internet Access.

Don't try to run before you can walk!
1
Abraham DeutschIT professionalAuthor Commented:
I think I followed your instructions but I still get the error msg when trying to add Vmachine. see bellow. Server IP configVMachine  IP config
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Try a ping using fqdn to the domain controller.
1
Abraham DeutschIT professionalAuthor Commented:
Ping result
0
Abraham DeutschIT professionalAuthor Commented:
I changed the network setting to net. It WORKS. it successfully joined the domain.
Now what about getting internet.
0
Abraham DeutschIT professionalAuthor Commented:
David, whey do I also need the 127.0.0.1 it works fine without it?
0
Abraham DeutschIT professionalAuthor Commented:
David I worked days to figure this out, and you gave the perfect solution with your first shot. I was written a little in short so it took me time to follow. thank you. but do you know why I don't have internet on the Vserver Vmachine?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay, so you are domain joined.... so do you have internet now ?
0
Abraham DeutschIT professionalAuthor Commented:
No
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
So the solution you have selected is not complete ?
0
Abraham DeutschIT professionalAuthor Commented:
Correct
0
David Johnson, CD, MVPOwnerCommented:
All domain computers should only have the local dns server in their dns server entries.
The domain controller should have (from my experience) in the dns application have forwarders set rather than just use root hints i.e. 8.8.8.8/8.8.4.4/208.67.222.222/208.67.220.220 Use dnstest from grc.com and use the fastest ones for your area. do not rely on your isp's domain controllers for dns as they are notoriously unreliable and not maintained.

if you are using bridged networking the gateway should be the same as the rest of your network. (usually the routers address)
0
David Johnson, CD, MVPOwnerCommented:
if you get a 169.254.xxx.xxx address then you are using an apipa address automatically assigned by the operating system.. This means (a) not static address and (b) did not get an address via dhcp. you need to fix this and to get outside of your subnet you need a gateway address

If the client is unable to find the information, it uses APIPA to automatically configure itself with an IP address from a range that has been reserved especially for Microsoft. The IP address range is 169.254.0.1 through 169.254.255.254. The client also configures itself with a default class B subnet mask of 255.255.0.0. A client uses the self-configured IP address until a DHCP server becomes available.
http://www.webopedia.com/TERM/A/APIPA.html
0
Abraham DeutschIT professionalAuthor Commented:
You are right saying the vMachine does not have a static IP. But the vserver dose see image and also does not have internet connection Server IP config
0
Abraham DeutschIT professionalAuthor Commented:
Andrew, the header of my question is "change network setting to "create" in VMware a network" with David solution I "have" a network now if I have a issue with the network I would not say I don't have a network, its is a network even without internet, rather I consider it as a issue, and maybe grade the solution for a B. therefore I marked his solution as accepted solution. agree?
0
Abraham DeutschIT professionalAuthor Commented:
Notice the IP config on the local shows no gateway for the VM network, so it has no path to the internet.IP config report on the local
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You made it clear in your Question description,
Can someone guide me thru the process (without losing internet on the virtual machines?

if you are happy with the solution accepted that's fine, Question Closed then.
0
David Johnson, CD, MVPOwnerCommented:
it still isn't working properly since one of the requirements was have internet on the virtual machines. This in all likelihood is a configuration problem on the lab dns server. as a quick test can you ping 8.8.8.8 or do a tracert 8.8.8.8 and also a nslookup google.com please share the results.
0
David Johnson, CD, MVPOwnerCommented:
as mentioned previously you require a gateway to get outside of your network.
Bridged network the gateway would typically be your routers address.
NAT (not NET) [one letter means a big difference] it would be the NAT ip address (vmware player)
0
Abraham DeutschIT professionalAuthor Commented:
Andrew. You are right I did mention internet in my question. And Thank you for making me aware. Thank you David for reopening the question. I will try your solution and update you. Thank you all again.
0
Abraham DeutschIT professionalAuthor Commented:
Sorry David but if you don't mind please explain me again what to do it order to get internet.
0
David Johnson, CD, MVPOwnerCommented:
in the running operating system network settings or the result from ipconfig you will see the ip adress, netmask, and gateway.

i.e. 192.168.0.20 255.255.255.0 192.168.1.1  Addresses 192.168.0.0-255 will be considered in your local area network ip addresses out side of that range will be sent to 192.168.1.1 (the gateway) and then sent onward.. the gateway in a bridged network usually is your routers ip address  in a NAT network it will be the host machines ip address
0
Abraham DeutschIT professionalAuthor Commented:
Thank you David. and this is how I set it, and don't have connection to the internet. Host IPVserver
0
David Johnson, CD, MVPOwnerCommented:
vserver gateway should be the same as for the host 192.168.1.1
0
Abraham DeutschIT professionalAuthor Commented:
VMware just released an update to their workstation and joining a domain is a pleasure.
When creating a Vmachine it will use net by default this will create a virtual network adapter for the Vmachine and connect it to a virtual switch (net8).
This virtual switch will be used for all Vmachine except if other specified.
The virtual DHCP server on the NAT network sends out configuration information that enables the virtual machine to operate. This information includes the default gateway and the DNS server. And assigns IP addresses to virtual machine. So no custom configuration is needed.
The NAT device is a DNS proxy and forwards DNS requests from the virtual machines to a DNS server that the host system knows. Responses return to the NAT device, which then forwards them to the virtual machines, so you have internet access.
Only on the server you should manually configure the IP so is will not conflict with IP taken by other machines, but all other configurations should same as the other machines as you can see from a ping on the other machines.
In the default configuration, the virtual DHCP server dynamically allocates IP addresses in the range of net. 128 through net.254 IP address net.1 is reserved for the host virtual network adapter and net.2 is reserved for the NAT device which is the gatway.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Abraham DeutschIT professionalAuthor Commented:
In few minuets you can have a domain up in running with internet. just leave all setting at its default accept the server as explained in my answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.