I'm using NAT networking and can't connect from my VM while a static IP is set. If I get an IP from DHCP, I can connect to the internet, but I need my VM to have a static IP. What am I doing wrong?
Accordin to the output, the NAT (vmnet8) subnet is 192.168.10.x, so your VM needs an IP address in this range with subnet mask 255.255.255.0 and the default gateway as well as the DNS-Server address set to 192.168.10.2.
André
Is the Static IP Address being assigned in the same Subnet as the NAT Network, default VMnet8, and outside the Scope of the VMnet's DHCP IP Address Pool?
See DHCP Conventions for Assigning IP Addresses in Host-Only and NAT Networks for example.
Otherwise...
VMware Product and Version?
Host OS Product and Version?
What VMnet is being used for NAT Networking, the default VMnet8?
How is the Host connected to the Internet, Wired Ethernet or WiFi?
In a Command Prompt, output of ipconfig /all on Windows Host and or Guest.
In a Terminal, output of ifconfig -a on Linux Host and or Guest.
The static IP I'm trying to set is 192.168.1.10, VMnet's subnet IP is 192.168.1.0, the VMnet's DHCP address pool is 192.168.1.128-254
I'm using VMWare Workstation 10, my host OS is Windows 7 Home Premium 64 bit, my host is connected to the internet via wired ethernet.
My host IP is currently 192.168.1.103 subnet mask 255.255.255.0 gateway 192.168.1.1
If the information you've presented is correct then here is the issue I see:
The Host's IP Address and the VMnet Address are on the same Subnet and this normally should't be! Because the Host's VMnet Network Adapters IP Address is by default .1 on the last octet and you said the VMnet's IP Address Subnet is 192.168.1.0, thus making the the Host's VMnet Network Adapters IP Address 192.168.1.1 which is the same at the Host's Gateway IP Address of 192.168.1.1. Normally the only way the VMnet's IP Address Subnet would be the same as the Host's IP Address Subnet is if the User modified the VMnet's IP Address Subnet manually in the Virtual Network Editor as VMware Workstation would not have configured the VMnet to use the same Subnet as the Host's!
This is also why I asked for the output of ipconfig /all (or as applicable, ifconfig -a) on Host and Guest as it actually provides a bit more diagnostic information then you provided. I much prefer seeing copied/pasted command output then human translated information as it to easy to make typos!
Anyway since you didn't actually provide all the information requested I cannot comment based on all the technical facts however while it might be working at the moment nonetheless you best make sure you have things properly configured so it continues to work. Based on the information you provided, things are not properly configured!
Okay, I'm having this problem again. I am now connected to the internet by a wireless adapter. This is the readout of my ipconfig /all on the host.
Windows IP Configuration
Host Name . . . . . . . . . . . . ( removed )
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : RT73 USB Wireless LAN Card
Physical Address. . . . . . . . . : 00-27-19-F4-DD-B1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::d19e:8516:71f:ddb%15(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.100(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Sunday, 20 April 2014 11:09:27 AM
Lease Expires . . . . . . . . . . : Monday, 21 April 2014 11:09:40 PM
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 335554329
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-C3-9A-9E-E0-69-95-6F-68-78
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet
1
Physical Address. . . . . . . . . : 00-50-56-C0-00-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::61fa:b00b:5b74:151a%13(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.194.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 335564886
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-C3-9A-9E-E0-69-95-6F-68-78
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet
8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6d25:cab2:dde0:c8be%14(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.10.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 369119318
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-C3-9A-9E-E0-69-95-6F-68-78
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
I'm new to this, and any advice would be appreciated.
Could anyone help with this? I'm completely lost.
Accordin to the output, the NAT (vmnet8) subnet is 192.168.10.x, so your VM needs an IP address in this range with subnet mask 255.255.255.0 and the default gateway as well as the DNS-Server address set to 192.168.10.2.
André
It's working now, thank you.
Hey friend, you can refer to a tutorial here, it have a three way for VmWare Workstation connect Internet (Brigde, NAT and Host Only), can watch now in 8:35', Link Hướng dẫn kết nối Internet (kết nối mạng) cho máy ảo VMware Workstation - YouTube