# network interface settings
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet manual
auto eth0
iface eth0 inet manual
allow-vmbr1 bond0
iface bond0 inet manual
ovs_type OVSBond
ovs_bridge vmbr1
ovs_bonds eth0 eth1
ovs_options bond_mode=active-backup
auto vmbr1
iface vmbr1 inet static
address 192.168.0.22
netmask 255.255.255.0
gateway 192.168.0.1
ovs_type OVSBridge
ovs_ports bond0
[root@kvm2 ~]# ovs-vsctl add-bond br2 bond2 eth2 eth5
ovs-vsctl: cannot create an interface named eth2 because a port named eth2 already exists on bridge br2
[root@kvm2 ~]# ovs-appctl bond/show bond1
---- bond1 ----
bond_mode: active-backup
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
slave eth1: disabled
may_enable: false
slave eth6: enabled
active slave
may_enable: true
eth1 Link Up 時
1234567891011121314
[root@kvm2 ~]# ovs-appctl bond/show bond1
---- bond1 ----
bond_mode: active-backup
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
slave eth1: enabled
may_enable: true
slave eth6: enabled
active slave
may_enable: true
openvswitch 2.1.3 と 2.3.1 の違い
2.1.3
1234567891011121314
# ovs-appctl bond/show bond3
---- bond3 ----
bond_mode: active-backup
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
slave eth3: enabled
active slave
may_enable: true
slave eth4: enabled
may_enable: true
2.3.1
12345678910111213141516
# ovs-appctl bond/show bond3
---- bond3 ----
bond_mode: active-backup
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: off
active slave mac: fc:15:b4:28:86:93(eno4)
slave eno4: enabled
active slave
may_enable: true
slave ens2f3: enabled
may_enable: true