bridge0:在 bond0 上接收以自身地址作为源地址的数据包

bridge0:在 bond0 上接收以自身地址作为源地址的数据包

我使用 netplan (ubuntu 18.04) 创建了一个绑定,它显示两个成员物理网卡和绑定本身的 MAC 地址相同。我在此基础上配置了一个桥接器,用于 KVM/Qemu VM。

2: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master 
   bond0 state UP mode DEFAULT group default qlen 1000
   link/ether 2a:5b:a6:18:e7:40 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master 
   bond0 state UP mode DEFAULT group default qlen 1000
   link/ether 2a:5b:a6:18:e7:40 brd ff:ff:ff:ff:ff:ff
4: bridge0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state 
   UP mode DEFAULT group default qlen 1000
   link/ether 6e:2b:1c:0e:af:6e brd ff:ff:ff:ff:ff:ff
5: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue 
   master bridge0 state UP mode DEFAULT group default qlen 1000
   link/ether 2a:5b:a6:18:e7:40 brd ff:ff:ff:ff:ff:ff

一切看起来都正常并且似乎可以工作,但我在日志中收到大量以下错误:

kernel: bridge0: received packet on bond0 with own address as source 
address (addr:6e:2b:1c:0e:af:6e, vlan:0)

我的 netplan 配置:

network:
version: 2
renderer: networkd
ethernets:
  eno1:
    match:
      macaddress: 74:46:a0:fe:ee:7c
  eno2:
    match:
      macaddress: 74:46:a0:fe:ee:7d
bonds:
  bond0:
    interfaces: [eno1, eno2]
bridges:
  bridge0:
    interfaces: [bond0]
    dhcp4: false
    addresses: [172.16.62.200/24]
    gateway4: 172.16.62.1

这里出了什么问题?为什么会出现错误?

提前致谢

答案1

好的,只需要做更多实验。添加显式键模式即可解决问题。我选择了:

  bond0:
    interfaces: [eno1, eno2]
    parameters:
      mode: balance-tlb

没有更多错误。

实际上,我认为问题在于更改之间需要重新启动主机。我只是在执行“netplan apply”。

相关内容