-1

ubuntu 2004 我用netplan分配网络,然后错误来了:

/etc/netplan/00-installer-config.yaml:8:3: Error in network definition: unknown key 'nameservers'
  nameservers:

下面的 00-installer-config.yaml 文件:

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens32:
            addresses: [10.9.86.40/24]
            gateway4: 10.9.86.254
  version: 2
  nameservers:
        addresses: [192.168.2.1, 8.8.8.8]
4

1 回答 1

0

不要使用tab键,只使用空格

于 2021-06-03T09:15:16.660 回答