VMware Communities
Anthony_Tseng
Contributor
Contributor

NAT network can not reach from outside host

Dear,

I have a question about VMware Workstation Pro. Please advice, thank you so much.

I have two hosts with 1 NIC in same LAN as below:

===================================

Host A: 10.66.192.101  Ethernet0

Host B: 10.66.192.102  Ethernet0  <=== VMware workstation Pro

===================================

For example, the VMware workstation Pro was installed on Host B, and the IP subnet for the each vNIC as below:

===================================

VMnet1(Host-only)    192.168.20.0/24

VMnet8(NAT)            192.168.10.0/24  GW:192.168.10.2

===================================

There is a VM on Host B using NAT NIC, the IP add is 192.168.10.100/24 DNS/GW: 192.168.10.2.

I want to connect this VM on Host A, so I add the route on HostA as below:

===================================

route add -p 192.168.10.0 mask 255.255.255.0 10.66.192.102

===================================

and enable IP forwarding on Host B as below:

===================================

netsh
interface ipv4
show interfaces
show interfaice 1
set interface 1 Forwarding=Enabled
===================================

But I still can not reach that VM from Host A(ping 192.168.10.100), why? anything I missed?

anyone can help me on here, Thank you so much.

 

Tags (1)
Reply
0 Kudos
2 Replies
RDPetruska
Leadership
Leadership

You don't need to do ANYTHING on host A.

You need to use the Virtual Network Editor and add port mapping on host B's VMware configuration... to allow the guest behind the NAT router to accept incoming traffic on a specific port.  Then host A will merely use host B's IP address - the NAT port mapping rules will pass the incoming traffic into the guest.

Reply
0 Kudos
Anthony_Tseng
Contributor
Contributor

Hi RDPetruska,

Thank you so much for your kindly reply.

That 's a good idea, and I try it, it's work.

but only for specific port, like 22, 80 and so on.

we can not make that VM pingable, right?

Reply
0 Kudos