Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

what should I set for Default Gateway for VMware NAT ??

Posted on 2015-01-07
26
Medium Priority
?
4,966 Views
1 Endorsement
Last Modified: 2015-01-13
I have a question what should I specify for DG for VMWARE NAT in order to have an internet for my servers?
I setup the lab with DNS and DHCP servers roles installed. DHCP vmware is turned off. I am wondering if I setup the scope in DHCP on the server to be from 192.168.174.5 to 192.168.174.254. What gateway should I distribute so that my servers can access internet?? I tried 192.168.174.2 and they are NOT getting internet.

Thanks!
1
Comment
Question by:creative555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 15
  • 11
26 Comments
 
LVL 123
ID: 40536686
The Default Gateway when using NAT, is usually defined as....

192.168.10.2 on the VMNET8 network.

You will need to Define a new NAT network using the Virtual Network Editor, but TURN OFF DHCP, as you have your OWN!

or use the Default IP Addresses on VMNET8....
0
 

Author Comment

by:creative555
ID: 40536837
So, if I will turn off DHCP vmware and use my DHCP server, then I should use DW for DHCP scope as 192.168.10.2??
0
 
LVL 123
ID: 40536860
if you use the default network of 192.168.10.2 as gateway, and re-ip all your IPs, and setup DHCP on your server as 192.168.10.1 to 192.168.10.254 as  per VMNET8 in Virtual Network Editor.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:creative555
ID: 40538592
oh. Got you. let me try that and will let you know if successful. We not got rid of Proxy by getting wireless card so I should have the internet working after setting IPs correct
0
 

Author Comment

by:creative555
ID: 40541199
WHat would be the DG gateway if I want to use the scope that I have below so that I dont have to re-IP all the machines

DHCP vmware is turned off. I am wondering if I setup the scope in DHCP on the server to be from 192.168.174.5 to 192.168.174.254.
0
 

Author Comment

by:creative555
ID: 40541204
Besides I specified static IPs for the servers with DG as 192.168.10.2. Why they dont have internet?

What stati settings I need to apply to my DNS and DHCP server?

Thank you so much
0
 
LVL 123
ID: 40541233
Are they on the VMNET8 network ?

can you ping www.demon.net ?

can you ping 158.152.1.222 ?
0
 

Author Comment

by:creative555
ID: 40546666
pic1.jpg
I reset the VMNET8 to default settings. see the screenshot. Is this checkbox "USe Local DHCP" means that it uses vmware DHCP? Should I uncheck it? Also, the default network is now 192.168.168.0

PLease advise if I should use VNMET 8 or create a new one, or maybe just use NAT?
0
 

Author Comment

by:creative555
ID: 40546672
this is the default IP range for VMNET8. It doesn't tell me the gateway it its using.
pic2.jpg
0
 
LVL 123
ID: 40546678
the gateway is the host itself, IP Address on VMNET8.

If you want to use your own Windows DHCP server, you should turn off the VMware DHCP server, otherwise you will have two conflicting DHCP servers on your LAN issuing IP Addresses.

The NAT IP Addresses and configuration need to match the IP addresses you have selected for your servers.
0
 

Author Comment

by:creative555
ID: 40546767
OK. NOw I have internet if I am using VMWARe DHCP. It gave me gateway as 192.168.168.2. So, I am going to create a new VMNET 9 now and turn of the VMWARE DHCP. I dont care about the scope...It can be any scope as long as I get the internet.

So, how do I know what gateway to setup if you dont use vmware dhcp?

VMWare-DHCP-settings.jpg
0
 
LVL 123
ID: 40546824
it's the IP Address of the VMNETx adaptor in the host!
0
 

Author Comment

by:creative555
ID: 40546875
WHat do you mean by "The NAT IP Addresses and configuration need to match the IP addresses you have selected for your servers"? Could you please explain. So, I can't have any scope for my DHCP server?
0
 
LVL 123
ID: 40546902
what IP Addresses have you chosen to use for your Lab and Virtual Servers ?

if you have used 10.10.1.1 - 10.10.1.255 for your Virtual Servers, you will also need to create a virtual network

also 10.10.1.1 - 10.10.1.255, so it routes correctly for you,. and NAT works! (if you want internet access!)
0
 

Author Comment

by:creative555
ID: 40546923
dns.jpghere is the static IP for my DNS server

ANd here is my scope on the server. I assigned the following. Let me know if this is good. I turned off Vmware DHCP
DHCP-server-scope-settings.jpg
0
 
LVL 123
ID: 40546945
that all looks good, did you also define a network with the same IP Addresses ?
0
 

Author Comment

by:creative555
ID: 40546957
Ok. Internet is working now with the Vmware DHCP turned off and with this scope that I have on the pic.

I didn't create the new virtual network but used the IP gateway from VMNET8 as 192.168.168.2 as you originally advised.
VMNET8-DHCP-turned-off.jpgvmnet8.jpg
SO, another option was to create another virtual network first such as below and set the same scope with DG of 10.10.1.1??
Is that correct?

if you have used 10.10.1.1 - 10.10.1.255 for your Virtual Servers, you will also need to create a virtual network

also 10.10.1.1 - 10.10.1.255, so it routes correctly for you,. and NAT works! (if you want internet access!)
0
 
LVL 123

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 40546992
Yes, that's all good.

I believe VMware Workstation always wants to be xxx.xxx.xx.2 for the default gateway.
0
 

Author Comment

by:creative555
ID: 40546994
I am trying also the second option 2 that you suggested with virtual network  -  virtual network 10.10.1.1 - 10.10.1.255, but it tells me that NAT can only be used one....What would you recommend then?

can-only-have-one-NAT.jpg
0
 
LVL 123
ID: 40547010
You can only have one NAT network! If you do not like the IP Addresses, change them or delete the network, and re-create.

How many networks do you want to use ?

It does not matter which you use, the IP Address 10.xx.xx.xx.xx I used as an example , I just plucked out of thin air!
0
 

Author Comment

by:creative555
ID: 40547234
hm are you sure you can create a new virtual network with any IP range such as 10.10.1.0-255

See screenshot below. when I create new virtual network and select NAT, it already has the network IP
NewVirtualNetwork.jpg
0
 

Author Comment

by:creative555
ID: 40547239
If I would choose Host Only for VMNET9 instead of NAT, would I have the internet??
0
 
LVL 123
ID: 40547244
HOST only communicates ONLY with the HOST!
0
 

Author Comment

by:creative555
ID: 40547442
Got you. I am all set now and you answered all my questions!! I recreated the new Virtual Netwrok VMNET9 and created DHCP scope on the server with same network IPs and DG as for VMNET9. VMNET9SEttings.jpg
0
 

Author Closing Comment

by:creative555
ID: 40547476
Thank you so much! Everything is working now.
0
 
LVL 123
ID: 40547707
No problems.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

688 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