Ubuntu Server 21.10静态IP地址的设置和以前不同了
ifconfig cd /etc/netplan ll vim -----.yaml
# This is the network config written by 'subiquity' network: ethernets: eth0: dhcp4: no addresses: [192.168.200.41/24] optional: true gateway4: 192.168.200.1 nameservers: addresses: [192.168.200.1,114.114.114.114] version: 2
一定要注意 :后面加个空格
sudo netplan apply

评论