1. 程式人生 > 其它 >VM虛擬機器網絡卡出現問題無法上網的解決

VM虛擬機器網絡卡出現問題無法上網的解決

技術標籤:零信任虛擬機器

今天執行VMware中的linux虛擬機器(ubuntu 20.04)時,發現無法連線網路,無論使用橋接模式還是NAT模式都無法連線。

使用 ip a命令查詢,結果如下
在這裡插入圖片描述
複製錯誤資訊ens33: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 link/ether 00:0c:29:28:1e:c3 brd ff:ff:ff:ff:ff:ff 百度查詢以後,發現是虛擬機器網絡卡問題,重啟網絡卡後問題解決。重啟命令如下:

[email protected]
:~# systemctl stop NetworkManager [email protected]:~# systemctl disable NetworkManager Removed /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service. Removed /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service. Removed /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
[email protected]
:~# service network-manager restart

重新使用ip a命令查詢,網路恢復正常。
在這裡插入圖片描述