cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system network: version: 2 renderer: networkd ethernets: ens33: dhcp4: no addresses: [192.168.3.80/24] gateway4: 192.168.3.1 nameservers: addresses: [114.114.114.114]
执行如下命令 使得如上更改生效
netplan apply