有没有办法在 Netplan 中创建通用接入点条目?

有没有办法在 Netplan 中创建通用接入点条目?

为了使用 VirtualBox 的桥接适配器,我是否需要为所使用的每个 AP 创建一个接入点条目?

编辑:这是我在网络完全崩溃之前尝试的 netplan 配置。现在,它恢复为默认配置。

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

# Added everything from here myself
  ethernets:
    enp1s0:
      dhcp4: true
      dhcp6: true
    wlp2s0:
      dhcp4: true
      dhcp6: true
#  wifis:
#    wlp2s0:
#      access-points: {...}
#      dhcp4: true
#      dhcp6: true

  bridges:
    br0:
      interfaces: [enp1s0, wlp2s0]
      dhcp4: true
      dhcp6: true

我第一次这样做时,网络因为换行符而完全崩溃(分段错误)。即使删除它们,也从未恢复,即使使用原始/默认配置文件。不得不重启我的笔记本电脑。

编辑2:运行后netplan --debug generate,返回:

DEBUG:command generate: running ['/lib/netplan/generate']
** (generate:7696): DEBUG: 12:42:59.421: Processing input file //etc/netplan/01-network-manager-all.yaml..
** (generate:7696): DEBUG: 12:42:59.421: starting new processing pass
** (generate:7696): DEBUG: 12:42:59.421: wlp2s0: setting default backend to 2
** (generate:7696): DEBUG: 12:42:59.421: br0: setting default backend to 2
** (generate:7696): DEBUG: 12:42:59.421: enp1s0: setting default backend to 2
** (generate:7696): DEBUG: 12:42:59.421: Generating output files..
** (generate:7696): DEBUG: 12:42:59.421: networkd: definition wlp2s0 is not for us (backend 2)
** (generate:7696): DEBUG: 12:42:59.421: networkd: definition br0 is not for us (backend 2)
** (generate:7696): DEBUG: 12:42:59.421: networkd: definition enp1s0 is not for us (backend 2)

相关内容