I searched a lot on the Internet, but I couldn't find a solution
It is best not to try the commands in this post. It is best to take a snapshot of your virtual machine. After the following commands are executed, you will not be able to find the network settings.
Solution:
Open the control panel, find the following, restart the two, ping in the command window, if it can be connected for so long
If there is no problem with ping, then there is a problem with the shell