目次

07 OpenVswitch ovs

Bond list

# ovs-appctl bond/list
bond	type	slaves
bond0	balance-slb	eth0, eth1
bond1	balance-slb	eth3, eth2

Bond show

# ovs-appctl bond/show bond0
bond_mode: balance-slb
bond-hash-algorithm: balance-slb
bond-hash-basis: 0
updelay: 31000 ms
downdelay: 200 ms
next rebalance: 178216 ms
lacp_negotiated: false

slave eth0: enabled
	active slave
	may_enable: true
	hash 115: 0 kB load
	hash 203: 733407 kB load

slave eth1: enabled
	may_enable: true
	hash 23: 81 kB load
	hash 31: 3786 kB load
	hash 84: 578 kB load
	hash 159: 5402 kB load
	hash 224: 3364 kB load
	hash 240: 2351 kB load
	hash 242: 7942 kB load

Vlan Bridge Bond show

# ovs-vsctl show
33a6209b-9bf7-4914-8250-ccfd937003fe
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port "vxlan-0a0a0a77"
            Interface "vxlan-0a0a0a77"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.10.10.101", out_key=flow, remote_ip="10.10.10.119"}
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "vxlan-0a0a0a67"
            Interface "vxlan-0a0a0a67"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.10.10.101", out_key=flow, remote_ip="10.10.10.103"}
        Port "vxlan-0a0a0a66"
            Interface "vxlan-0a0a0a66"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.10.10.101", out_key=flow, remote_ip="10.10.10.102"}
    Bridge "br-bond2"
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "phy-br-bond2"
            Interface "phy-br-bond2"
                type: patch
                options: {peer="int-br-bond2"}
        Port "br-bond2.313"
            tag: 313
            Interface "br-bond2.313"
                type: internal
        Port "bond2"
            Interface "bond2"
        Port "br-bond2"
            Interface "br-bond2"
                type: internal
        Port "br-bond2.350"
            tag: 350
            Interface "br-bond2.350"
                type: internal
    Bridge "br-bond0"
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "phy-br-bond0"
            Interface "phy-br-bond0"
                type: patch
                options: {peer="int-br-bond0"}
        Port "br-bond0"
            Interface "br-bond0"
                type: internal
        Port "bond0"
            Interface "bond0"
    ovs_version: "2.9.2"