Bond和一个接口之间的Linux生成树

我试着用networking虚拟化来做一些事情,让我的Proxmox服务器准备好在HA环境下生产

我正在使用openvswitch 2.5

我试图达到的安装程序:

我的服务器有4个接口3连接到交换机1和1连接到交换机2冗余,如果债券破产

我成功地在我的两台物理交换机和服务器上的虚拟网桥之间创build了一个生成树环境。 但它只有没有债券的作品

我连接eth0到开关1,eth3到开关2和开关1和开关2在一起。

Proxmox与openvswitch的接口configuration

auto br1 allow-ovs br1 iface br1 inet manual ovs_type OVSBridge ovs_ports eth0 eth3 vint1 allow-br1 eth3 iface eth3 inet manual ovs_bridge br1 ovs_type OVSPort ovs_options other_config:stp-path-cost=100 allow-br1 eth0 iface eth0 inet manual ovs_bridge br1 ovs_type OVSPort ovs_options other_config:stp-path-cost=10 auto vint1 allow-br1 vint1 iface vint1 inet static ovs_type OVSIntPort ovs_bridge br1 ovs_options vlan_mode=native-untagged ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)${IFACE}-vif address 10.2.2.4 netmask 255.255.255.192 gateway 10.2.2.1 

它的工作原理,但是当我尝试用eth0 eth1和eth2作为奴隶的债券取代eth0。

生成树不想工作

接口configuration:

 auto br1 allow-ovs br1 iface br1 inet manual ovs_type OVSBridge ovs_ports bond1 eth3 vint1 allow-br1 bond1 iface bond1 inet manual ovs_bridge br1 ovs_type OVSBond ovs_bonds eth0 eth1 eth2 ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast other_config:stp-path-cost=10 allow-br1 eth3 iface eth3 inet manual ovs_bridge br1 ovs_type OVSPort ovs_options other_config:stp-path-cost=100 auto vint1 allow-br1 vint1 iface vint1 inet static ovs_type OVSIntPort ovs_bridge br1 ovs_options vlan_mode=native-untagged ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif address 10.2.2.4 netmask 255.255.255.192 gateway 10.2.2.1 

在这种情况下,每个链接都进入转发模式,并在networking上进行循环启动。

LACP债券正在运作。

我不知道在生成树环境中绑定一个键(LACP)和一个经典接口是否很常见。

我一直在努力了几天,我找不到一个方法使其工作。

我不知道我是否应该使用除生成树以外的其他东西来切断绑定时的安全连接。

我不知道openvswitch是否可以做我想做的事情。

我不需要立即解决答案

但是可以帮助我理解和尝试不同的东西。

我现在卡住了,我尝试了很多东西,但是我失败了。

感谢那些会帮助我的人。

不幸的是,我认为Open vSwitch目前无法在绑定链接上执行RSTP / STP( https://pve.proxmox.com/wiki/Open_vSwitch#Example_4:_Rapid_Spanning_Tree_.28RSTP.29_-_1Gbps_uplink.2C_10Gbps_interconnect )。 我目前正在研究完全相同的设置,我真的希望很快就能实施。