I am having a VMware Workstation 15 setup.
Following Custom vmnet8 is what I think I have assigned to virtual machine.
vmnet0 I am not using (as per my understanding) but screenshot for information
vmnet8 is where I expect all connections are going as this I am using for NAT
apipa IP in virtual machine
Ethernet adapter Ethernet0:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : ffff::ffff:ffff:ffff:ffff%12
Autoconfiguration IPv4 Address. . : 169.254.174.62
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
What is the mistake in this configuration.
The Host OS has network connectivity.
update1
as per the suggestion in comment I enabled DHCP service in vmnet and connected virtual network adaptor 8 to settings
see this screenshot. So APIPA Ip problem is solved
Now I want to give internet connectivity to Virtual machine that is not happening with above steps. What is the mistake here?
Windows IP Configuration in Virtual Machine
Ethernet adapter Ethernet0:
Connection-specific DNS Suffix . : localdomain
Link-local IPv6 Address . . . . . : ffff::ffff:ffff:ffff:ffff
IPv4 Address. . . . . . . . . . . : 192.168.152.128
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.152.2
IP Configuration of Host OS
Windows IP Configuration
Wireless LAN adapter Wi-Fi 2:
Connection-specific DNS Suffix . : domain.name
Link-local IPv6 Address . . . . . : ffff::ffff:ffff:ffff:fffb%11
IPv4 Address. . . . . . . . . . . : 192.168.1.14
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : ffff::ffff:ffff:ffff:fff5%11
192.168.1.1
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : domain.name
Link-local IPv6 Address . . . . . : ffff::ffff:ffff:ffff:fff4%13
IPv4 Address. . . . . . . . . . . : 192.168.1.13
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : ffff::ffff:ffff:ffff:fff%13
192.168.1.1
There are 2 Wifi Cards on this system
Wireless Lan adapter Wifi: Realtek
Wireless Lan Adapter WiFi 2:D Link USB Wifi Adapter
from the guest OS I can ping to 8.8.8.8
see the screenshot
nslookup to www.vmware.com fails
This is VMware Workstation 15 Pro
15.1.0 build-13591040
From the host OS I can do not get a ping reply from virtual machine
I do a ping from my host OS to virtual machine (which is running on my laptop)
C:\WINDOWS\system32>ping 192.168.152.128
Pinging 192.168.152.128 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.152.128:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
C:\WINDOWS\system32>
but if I do a ping from my Guest OS to host OS I get a reply.
C:\Users\Debian>ping 192.168.1.14
Pinging 192.168.1.14 with 32 bytes of data:
Reply from 192.168.1.14: bytes=32 time=1ms TTL=128
Reply from 192.168.1.14: bytes=32 time=1ms TTL=128
Reply from 192.168.1.14: bytes=32 time=1ms TTL=128
Reply from 192.168.1.14: bytes=32 time=1ms TTL=128
Ping statistics for 192.168.1.14:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
192.168.1.14 is my host OS (IP is given by ADSL router) 192.168.152.128 is IP of my virtual machine this IP is given by VMware DHCP service in vmnet8 in virtual network editor.