0 3810
/xx.yaml:4:1: Invalid YAML: inconsistent indentation:
ethernets:_图一
/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

[分类]
[来源] http://erlangyun.com/p/id/221.html
[声明] 本站资源来自用户分享,如损害你的权益请联系客服QQ:120074275给予处理。