Linux 虚拟网桥默认会悄悄地删除LLDP消息(发送到LLDP_Multicast地址01-80-C2-00-00-0E)和01-80-C2-00-00-xx范围内的其他控制帧。原因可以在802.1AB标准中找到,该标准规定:

“the destination address shall be 01-80-C2-00-00-0E. This address is within the range reserved by IEEE Std 802.1D-2004 for protocols constrained to an individual LAN, and ensures that the LLDPDU will not be forward by MAC Bridges that conform to IEEE Std 802.1D-2004.”
目的地地址应为01-80-C2-00-00-0E。这个地址在IEEE Std 802.1D-2004为单个LAN的协议保留的范围内,并确保符合IEEE Std 802.1D-2004的MAC桥接器不会转发LLDPDU。

  但是,可以使用如下方法在使每个网桥支持LLDP报文转发:

# echo 16384 > /sys/class/net/<bridge_name>/bridge/group_fwd_mask

  比如我的网桥名子是virbr1:

# echo 16384 > /sys/class/net/virbr1/bridge/group_fwd_mask

  请记住,这是每个虚拟网桥的设置,如果环境中有多个网桥那得分别设置一下。

Logo

更多推荐