小编GRR*_*gis的帖子

Netplan 抱怨“未知的关键桥梁”

我正在尝试为 KVM 设置网桥,但我不断收到错误消息

网络定义错误 //etc/netplan/50-cloud-init.yaml line 5 column 0: unknown key bridges.

有趣的是,第 5 行第 0 列是network,而不是bridges,所以我不确定为什么要说桥梁。这是.yaml我正在尝试的:

# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
  version: 2
  renderer: networkd
  ethernets:
    enp2s0:
      dhcp4: no
bridges:
    br0:
      interfaces: [enp2s0]
      dhcp4: no
      addresses: [192.168.1.3/24] …
Run Code Online (Sandbox Code Playgroud)

kvm netplan 18.04

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

18.04 ×1

kvm ×1

netplan ×1