Because I recently encountered a strange ping that does not work with a virtual machine. During this process, I checked many settings, so I wrote an article to record it. If there is a VMware virtual machine that does not work with a virtual machine, you can try the troubleshooting method in this article.
The following is an example of the VMware virtual machine.
1. Check the network
First, ping the virtual machine through the host and ping the virtual machine to check whether the network is connected.
# ping IP ping 192.168.231.163
There may be two types of situations:
(1) One side can ping the other side;
(2) Both sides ping each other and do not communicate;
- If it is the first case, focus on checkingProxy/VPNIs it closed?
- If this is the second case, check the virtual machine network.
2. Restart the virtual machine network
(1) If you have not manually configured the virtual machine IP, there is generally no problem. You can check whether the virtual machine is on the same network segment as the host.
(2) Restart the virtual machine network configuration, ubuntu can perform the following operations.
systemctl restart
(3) If you want to ssh to connect to the virtual machine, check whether to install the ssh-related package.
node@node:~$ dpkg -l | grep openssh ii openssh-client 1:8.2p1-4ubuntu0.11 amd64 secure shell (SSH) client, for secure access to remote machines ii openssh-server 1:8.2p1-4ubuntu0.11 amd64 secure shell (SSH) server, for secure access from remote machines ii openssh-sftp-server 1:8.2p1-4ubuntu0.11 amd64 secure shell (SSH) sftp server module, for SFTP access from remote machines
(4) The last move is to restart the virtual machine or restart the host.
Summarize
The above is personal experience. I hope you can give you a reference and I hope you can support me more.