添加网卡配置
sudo vim /etc/netplan/01-network-manager-all.yaml
network:
ethernets:
ens33:
dhcp4: no
addresses: [192.168.8.166/24]
gateway4: 192.168.8.1
nameservers:
addresses:
- 192.168.8.1
- 8.8.8.8
- 114.114.114.114
version: 2
renderer: networkd
sudo netplan apply