vmware中debian11虚拟机挂起或未正常关机重启后出现network is unreachable通过vmware网络编辑器解决(Debian11 virtual machine in VMware hangs or does not shut down normally. Network is unreachable after restart. It can be solved through VMware network editor)
重新进入debian11，确认“/etc/network/interface”和“/etc/resolv.conf”两个文件正常后，输入“systemctl restart networking”重启网络后，网络恢复正常。
Fault phenomenon: Debian in VMware uses bridging. Debian cannot be connected to the network after suspending Debian or the host hibernates and reboots. After modifying the interfaces to DHCP, it can be connected to the network automatically, but the network address is not the address of the bridged network segment. At this time, it is judged that the network card bridged by VMware is modified to be not the physical network card of windows host.
Solution: enter the VMware main menu “Edit” – virtual network editor – change settings – select the “bridge mode” option – “bridge to” drop-down, change “automatic” to the option of physical network card of physical machine, and pay attention to confirm whether the information of physical network card is correct – OK
Re enter debian11, confirm that the files “/ etc / network / interface” and “/ etc / resolv. Conf” are normal, enter “systemctl restart networking” to restart the network, and the network returns to normal.