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)

故障现象:vmware中的debian使用桥接,挂起debian或主机休眠重新开机后debian无法连网,修改interfaces为dhcp自动获取后可以联网,但网络地址不是桥接网络网段的地址。此时判断是vmware桥接的网卡被修改为不是windows主机的物理网卡。

解决方法:进入vmware主菜单“编辑”-虚拟网络编辑器-更改设置-选择“桥接模式”选项-“桥接到”下拉,将“自动”修改为物理机物理网卡那个选项,注意确认物理网卡信息是否正确-确定

重新进入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.