Virtual machines can ping a host, but not ping the host virtual machine solution

After powering on the virtual machine and found that the virtual machine can ping the host, but the connection timeout in the host command terminal at ping virtual machine because the host VMware Network Adapter VMnet8 network adapter IP settings wrong, the virtual machine IP is not in the same network segment.

Enter ifconfig in a terminal under a virtual machine to view the virtual machine ip, subnet mask, gateway, as I was 192.168.254.128,255.255.255.0,192.168.254.2.

Enter ipconfig in cmd host, view host VMware Network Adapter VMnet8 the ip, subnet mask, gateway, found not under a network segment.

So go to Network and Sharing center of the machine, click Change adapter settings, click VMware Network Adapter VMnet8, click Properties, click Internet Protocol Version 4 (TCP / IPv4) modify properties

 

 Click Finish to

Try again from the virtual machine host ping, can ping

 

Summarized as follows: In NAT mode, the unit of VMware Network Adapter VMnet8 IP network adapter and virtual machine instead IP in the same segment.

Guess you like

Origin www.cnblogs.com/mengjie88/p/11803879.html