xuanyuanaosheng opened a new issue #5426:
URL: https://github.com/apache/cloudstack/issues/5426
##### ISSUE TYPE
* Enhancement Request
* Documentation Report
##### OS / ENVIRONMENT
1. OS Version: Red Hat Enterprise Linux Server release 7.9 (Maipo)
3. cloudstack version: cloudstack-agent-4.15.1.0-1.el8.x86_64\
4. openvswitch-2.12.0-1.el7.x86_64
The cloudstack work node is using KVM + openvswitch
(http://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html#configuring-the-network-bridges-for-openvswitch
)
The
---
The related configuration is as below:
The switch configuration:
mode=4 and allowed vlan 136,290,291
```
interface Ethernet7/40
description to server Jethro1 eth0/0
switchport
switchport mode trunk
switchport trunk allowed vlan 136,290-291
channel-group 704 mode active
no shutdown
```
First we create a main bridge connected to the bond0 interface. Next we
create three fake bridges, each connected to a specific vlan tag.
# ovs-vsctl add-br cloudbr
# ovs-vsctl add-bond cloudbr bond0 ens2f0 ens2f1
# ovs-vsctl set port cloudbr trunks=136,290,291
# ovs-vsctl add-br mgmt0 cloudbr 136
# ovs-vsctl add-br cloudbr0 cloudbr 290
# ovs-vsctl add-br cloudbr1 cloudbr 291
The ifcfg-ens2f0 network configuration:
```
TYPE=Ethernet
BOOTPROTO=none
UUID=f8a7f9c7-b5fc-4887-a656-50b9e0cd787b
DEVICE=ens2f0
ONBOOT=yes
```
The ifcfg-ens2f1 network configuration:
```
TYPE=Ethernet
BOOTPROTO=none
UUID=0e8b0ab7-63c6-4704-9c27-01ee68098d6f
DEVICE=ens2f1
ONBOOT=yes
```
The ifcfg-bond0 configuration:
```
DEVICE=bond0
NAME=bond0
BOOTPROTO=none
ONBOOT=yes
HOTPLUG=no
TYPE=OVSBond
DEVICETYPE=ovs
OVS_BRIDGE=cloudbr
BOND_IFACES="ens2f0 ens2f1"
OVS_OPTIONS="bond_mode=balance-tcp lacp=active"
```
The ifcfg-mgmt0 configuration:
```
DEVICE=mgmt0
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=none
ONBOOT=yes
HOTPLUG=no
IPADDR=10.67.39.250
NETMASK=255.255.252.0
GATEWAY=10.67.39.254
```
The ifcfg-cloudbr0 configuration:
```
DEVICE=cloudbr0
BOOTPROTO=none
ONBOOT=yes
HOTPLUG=no
TYPE=OVSBridge
DEVICETYPE=ovs
```
The ifcfg-cloudbr1 configuration:
```
DEVICE=cloudbr1
BOOTPROTO=none
ONBOOT=yes
HOTPLUG=no
TYPE=OVSBridge
DEVICETYPE=ovs
```
The ovs-vsctl command is :
```
# ovs-vsctl show
fd8f7b60-f922-462f-b5c1-a9742e00bf89
Bridge cloudbr
Port cloudbr
trunks: [136, 290, 291]
Interface cloudbr
type: internal
Port "mgmt0"
tag: 136
Interface "mgmt0"
type: internal
Port "bond0"
Interface "ens2f0"
Interface "ens2f1"
Port "cloudbr0"
tag: 290
Interface "cloudbr0"
type: internal
Port "cloudbr1"
tag: 291
Interface "cloudbr1"
type: internal
ovs_version: "2.12.0"
```
The ovs-appctl bond/show command is
```
# ovs-appctl bond/show
---- bond0 ----
bond_mode: balance-tcp
bond may use recirculation: yes, Recirc-ID : 1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 736 ms
lacp_status: negotiated
lacp_fallback_ab: false
active slave mac: 48:df:37:5f:62:08(ens2f1)
slave ens2f0: enabled
may_enable: true
slave ens2f1: enabled
active slave
may_enable: true
hash 250: 6 kB load
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]