openvswitch common bond related commands


1、列出bond
ovs-appctl bond/list
[root@test~]# ovs-appctl bond/list
bond type recircID slaves
bond1 balance-tcp 1 eth3, eth1

2, brief information display bond
ovs-appctl bond / show bond name

[root@test ~]# ovs-appctl bond/show bond1
---- bond1 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 1362 ms
lacp_status: negotiated
active slave mac: 11:7b:44:b1:74:e0(eth1)

3, access to bond more information
ovs-appctl lacp / show bond name
[root @ the Test ~] # OVS-appctl LACP / Show bond0
NO SUCH LACP Object
OVS-appctl: OVS-vswitchd: AN Server returned error

4、ovs加bonding的命令:
ovs-vsctl add-bond <bridge name> <bond name> <list of interfaces>

5, enable lacp bond on the interface
ovs-vsctl set port bond0 lacp = active

Guess you like

Origin www.cnblogs.com/potato-chip/p/11958261.html