/etc/netplan/10-ens3.yaml:4:1: Invalid YAML: inconsistent indentation:
ethernets:
报以上错误基本上就是网络ip的配置缩进不一致,格式不正确。
以上介绍ubuntu的静态ip正确配置方式
Ubuntu 17.10, Ubuntu 18.xx, Ubuntu 19.xx, Ubuntu 20.xx
Populate the /etc/netplan/10-ens3.yaml
file with the following text.
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: no
addresses: [208.167.245.112/24]
gateway4: 208.167.245.1
nameservers:
addresses: [108.61.10.10]
Update networking or reboot.
netplan apply