VMware network adapter vmnet1 and VMWare network adapter vmnet8 are two virtual NICs used for communication between the virtual host and the Internet. They are not decisive in connecting with virtual machines and physical machines, even if the two virtual NICs are disabled, the ping between the physical machine and the virtual machine is not affected.
The key factor that determines whether Ping can be performed is whether they are in a CIDR block.
On the physical machine, run cmd-> ipconfig/all to view the Ethernet adapter-local connection, confirm IPv4, and set the Virtual Machine Nic to the IP address of the same network segment.
In virtual machines, Cd etc/sysconfig/network-script/
VI ifcfg-eth0
The content is similar to the following:
Device = eth0
Bootproto = static
Ipaddr = 169.254.73.5
Netmark = 255.255.0.0
# Dhcpclass =
Hwaddr = 00: 0C: 29: AE: 7f: 9f
Onboot = Yes
After saving and exiting, You can ping each other to implement communication between the virtual machine and the physical machine.
It is worth noting that the VM must be set as a program that can pass through the firewall.
If you have other questions, you can send an email [email protected] to communicate and make progress together.
This article is from the "Rhino" blog, please be sure to keep this source http://rhino.blog.51cto.com/5504750/1530233
How to ping a virtual machine to a physical machine-personal experience