Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the host and the host ping cannot access the virtual machine without VMware ping

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to solve the problem that the VMware ping host and the host ping can not access the virtual machine. The article is very detailed and has a certain reference value. Interested friends must finish reading it!

Upgrade to the latest version of VMware workstation, when using a virtual machine to build a server, it is found that Xshell is not connected to the virtual machine, so it is found that the host and the virtual machine are not connected to each other by ping.

The virtual machine and host of VMware workstation do not ping each other, and the result of ping is: request timed out. VMware Tool is used normally. VMware virtual machine networking (Internet) is normal: it means that the network card of the VMware virtual machine is working properly, so there should be no problem.

The key to the networking of VMware virtual machines is that VMware workstation assigns the network of the host to the virtual machine through this virtual network card, so that it can be connected to the virtual machine, and through it, a small local area network can be formed between the host and the virtual machine, so the working state of the virtual network card determines the communication between the host and the virtual machine.

Solution:

Check whether the corresponding network card is working properly and see if the host connection is connected.

After VMware workstation, there will be two network cards, VMnet8 and VMnet1, in the network adapter of the control panel. If you do not have these two network cards, or only one of them, then there is a good chance that this will lead to the failure of ping.

If it is connected, check the host control panel\ network and Internet\ network connections to see if there are VMnet8 and VMnet1 network cards.

If not, it means that the two network cards are not working, just restart. However, there are these two network cards on the personal host, and the virtual function is connected to the network, so it shows that the virtual network card is working normally, only that the host is not connected to the two network cards.

VMware's virtual network card configuration program on the computer is called: virtual network editor, generally can be found in the start menu, if not, you can go to the VMware installation directory to find.

After opening it, as shown in the following figure, click "change Settings"

There are generally three modes: VMnet0-- bridge mode, VMnet1-- custom mode, VMnet8--NAT mode, the mode here corresponds to your virtual machine networking mode, your virtual machine is what mode, choose what mode if there are multiple virtual machines and the networking mode is not the same, then all choose and configure, generally choose NAT mode by default, please choose according to your own virtual machine networking mode.

Select VMnet8 NAT mode. Check the [Connect Host Virtual Adapter to this Network (V)] item, and click [apply] and [OK].

Then check that VWware8 has been started in "Control Panel"-"Network and Internet"-"Network connection" on the host. As shown below:

Now you can ping the same:

After the above steps, this can not completely solve the problem of ping failure, because: the Nic of VMware workstation uses dynamic IP allocation, which will lead to failure after a period of time, the IP of the virtual machine will change, and finally lead to ping failure.

Solution:

Modify the effective cycle of dynamic IP (dynamic IP has failure time, which is known to all routers), and change it to permanent.

Assign a static IP to the virtual machine to fix the ip. This avoids changes in the IP of the virtual machine.

These are in the VMware network editor, can be modified, if broken, can be restored to the default.

It is recommended to configure static ip sub-subnet range class, how to configure after reading the previous article.

If the above problem cannot be solved, use the following method

Use the ipconfig command to view the host ip and ping the host ip on the virtual machine. If there is no ping connection, it means that the network card of vw is not started, reinstall it. If the ping can not be solved according to the above method, the probability is that the virtual machine and the host ip are no longer the same network segment.

Ipconfig looks at the ip network segment of VWnet8 on the host:

Obviously not on the same channel. Modify the ip of VWnet8 to match the virtual machine ip.

You can modify the subnet to the same network segment.

The above is all the contents of this article, "how to solve the problem that the host and the host ping are not connected to the virtual machine in VMware ping. Thank you for reading!" Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report