如何正确设置 KVM 桥接器?

如何正确设置 KVM 桥接器?

我遇到了一个大问题,无论我如何设置 KVM 桥接器,网络都会不断中断,直到我将所有内容恢复原状。我不知道我做错了什么,所以我向你求助。我尝试使用类似的指南设置 netplan:https://linuxhint.com/install-kvm-ubuntu-22-04/

这是我的 yaml:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: false
      dhcp6: false
      addresses: [192.168.1.2/24]
      nameservers:
        addresses: [1.1.1.1,1.0.0.1]
      routes:
        - to: default
          via: 192.168.1.1
          on-link: true
    enp12s0:
      dhcp4: false
      dhcp6: false
      addresses: [192.168.1.3/24]
      nameservers:
        addresses: [1.1.1.1,1.0.0.1]

这是我上次尝试过的:

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: false
      dhcp6: false
    enp12s0:
      dhcp4: false
      dhcp6: false
      addresses: [192.168.1.3/24]
      nameservers:
        addresses: [1.1.1.1,1.0.0.1]
  bridges:
    br0:
      dhcp4: false
      dhcp6: false
      interfaces: [eno0]
      addresses: [192.168.1.2/24]
      nameservers:
        addresses: [1.1.1.1,1.0.0.1]
      routes:
        - to: default
          via: 192.168.1.1
          on-link: true

我不知道还要提供什么其他信息,但我愿意提供任何

相关内容