1
votes

I am using VMWare Workstation 15 on a Windows 10 host. I want to set up my guests' network using NAT. In this case, the guests can access services running on the host using a fixed address without considering the network configuration outside the PC.

Configuration:

Host

Interface 1: 192.168.100.xxx in 192.168.100.0/24 (router-Internet)

Interface 2: 10.0.0.1 in 10.0.0.0/24 (VMnet2)

VMnet2 in VMware: VMnet2 Configuration Screenshot

Guest

Interface: 10.0.0.100 in 10.0.0.0/24 (VMnet2)

Ethernet adapter Host-NAT:
    Connection-specific DNS Suffix  . : localdomain
    Link-local IPv6 Address . . . . . : fe80::ad5d:7c44:696a:7c01%15
    IPv4 Address. . . . . . . . . . . : 10.0.0.101
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 10.0.0.1

Symptoms

Problem

  • The guest cannot access the Internet. (Pinging hosts on Internet result is timeout)

What works

  • The host can ping guests.

  • Guests can ping the host.

  • Guests can ping each other.

Wireshark on VMnet2 Screenshot

Checked

  • All VMWare services are running.

  • Firewall is disabled on both host and guest.

  • Reboot host or guest not works.

1

1 Answers

1
votes

Solution

Change Gateway in DHCP to 10.0.0.2.

Description

The 10.0.0.1 is indeed the host's address. However, unlike a standard router, the VMWare NAT host the gateway service on 10.0.0.2, not 10.0.0.1, thus all traffic sent to 10.0.0.1 will not be NATed.