VMware Communities
neckTwi
Contributor
Contributor

forward packets to vmware virtual subnet with out NATing

My Mac's WiFi interface is on 192.168.0.0 and VMware linux VM is on 192.168.56.0(vmnet8 NAT interface). My WiFi router is a RaspberryPi running linux(RPI). I am masquerading the traffic  and set the static route to guest network at my router, so I don't want to masquerade the traffic again at my MAC for the guest network .

There is also a Host-Only interface, vmnet1, for the virtual subnet that don't masquerade the traffic but it don't forward the traffic.

So how can I disable NAT on vmnet8 or forward the traffic on vmnet1?

0 Kudos
1 Reply
neckTwi
Contributor
Contributor

I can ping my router 192.168.0.1 from the VM but unable to ping VM(192.168.56.3) from the router!

I've added static route to 192.168.56.0 via 192.168.0.2(Mac Host) in the router.

pi@raspberrypi ~ $ route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

default         172.16.4.1      0.0.0.0         UG    0      0        0 eth0

172.16.4.0      *               255.255.252.0   U     0      0        0 eth0

192.168.0.0     *               255.255.255.0   U     0      0        0 wlan0

192.168.56.0    192.168.0.2     255.255.255.0 UGH   0      0        0 wlan0

0 Kudos