ifconfig
sudo gedit 01-network-manager-all.yaml
文本内容修改为:
# This is the network config written by 'subiquity'
network:
ethernets:
# 网卡名称
ens32:
# 关闭dhcp4
dhcp4: no
# IP地址
addresses: [192.168.2.143/24]
# 网关
gateway4: 192.168.2.1
# DNS
nameservers:
addresses: [8.8.8.8]
version: 2
sudo netplan apply
ifconfig



