Ubuntu 網卡問題:
a. 執行如下兩條命令:
sudo systemctl enable network-manager
sudo dhclient ens33
查看
sudo ifconfig ens33
sudo dhclinet ens33 # 手動獲取ip
sudo ifconfig ens33 # 查看
或者 b. 執行命令:
su root
vim /etc/netplan/01-network-manager-all.yaml
network:
ethernets:
ens33:
dhcp4: true
optional: true
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
"WIFINAME":
password: "xxxx"
version: 2
netplan try --debug
systemctl restart network-manager
再次嘗試
ping www.baidu.com