Solved

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

Posted on 2015-01-07
26
1,800 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
  • 15
  • 11
26 Comments
 
LVL 118
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 118
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
 

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 118
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 118
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 118
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

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

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 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 118
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 118
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 118
ID: 40547707
No problems.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

#Citrix #XenApp #Citrix Scout #Citrix Insight Services #Microsoft VMMAP #Microsoft ADEXPLORE #Microsoft RAMMAP #Microsoft TCPVIEW #Microsoft AUTORUNS #Microsoft PROCESS EXPLORER #Microsoft PROCESS MONITOR
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.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

746 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

15 Experts available now in Live!

Get 1:1 Help Now