You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "xuanyuanaosheng (via GitHub)" <gi...@apache.org> on 2023/06/27 08:33:10 UTC

[GitHub] [cloudstack] xuanyuanaosheng commented on issue #7660: How to configure the cloudstack agent node's Network Section to use VXLAN using bond concurrently on Centos 8 or Oracle 8 ?

xuanyuanaosheng commented on issue #7660:
URL: https://github.com/apache/cloudstack/issues/7660#issuecomment-1609042391

   # How to configure the cloudstack agent node's Network Section to use VLAN using bond concurrently on Centos 8 or Oracle 8 ?
   
   ##### ISSUE TYPE
   
    * Documentation Report
   
   ##### COMPONENT NAME
   - VLAN
   
   ##### CLOUDSTACK VERSION
   
   - cloudstack management node:
   ```
   cloudstack-common-4.17.2.0-1.el7.x86_64
   cloudstack-management-4.17.2.0-1.el7.x86_64
   ```
   - cloudstack agent node:
   ```
   cloudstack-agent-4.17.2.0-shapeblue0.el8.x86_64
   cloudstack-common-4.17.2.0-shapeblue0.el8.x86_64
   ```
   
   
   ##### OS / ENVIRONMENT
   - Oracle Linux Server 8.8
   
   ##### SUMMARY
   
   ##### CS数据中心:KVM + VLAN(高级网络模式)
   
   |    ILO IP    | SN      | Subtype                       | KVM hostname | KVM host IP |
   | :----------: | ------- | ----------------------------- | ------------ | ----------- |
   | 10.67.30.140 | 85XXXX2 | Dell Blade - 刀箱: CN-BL-1002 | cskvm001     | 10.67.128.1 |
   | 10.67.30.141 | 85YYYY2  | Dell Blade - 刀箱: CN-BL-1002 | cskvm002   | 10.67.128.2 |
   
   
   - 管理网络 :物理机以及系统 VM在所在的网络
   
     - VLAN 2128 : 10.67.128.0/24 (10.67.128.101 -->10.67.128.150)
   
   - 主存储
   
     - Ceph-RBD
   
   - 公共网络
   
     - VLAN: 2227  (10.71.227.0/24)
   
   - 客户机网络 
   
     - 10.65.128.0/17 (VLAN 2400 - VLAN 2500)
   
   - VPC2VPC 转发网络
   
     - VLAN 2232 
   
   - VPC2DC转发网络
   
     - VLAN 2226 (10.71.226.16/28) --> 10.71.226.17-26
   ---
   
   The cloudstack-management node IP is: **_10.25.2.173_**
   The cloudstack-agent node IP is: **_10.67.128.1 (cskvm001)_**
   The cloudstack-agent node IP is: **_10.67.128.2  (cskvm002)_**
   
   The KVM Host info: 
   1.   10.67.128.1  (cskvm001) , cloudbr0 IP is: 10.67.128.1 using VLAN: 2128 , cloudbr1  IP is:None
   2.   10.67.128.2  (cskvm002) , cloudbr0 IP is: 10.67.128.2 using VLAN: 2128, cloudbr1  IP is:None
   
   **The network connect info:**
   - eno1 and eno2 combined bond0 using subinterface bond0.2128 ; then config: cloudbr0
   - eno3 and eno4 combined bond1  ;then config: cloudbr1
   
   ##### STEPS TO REPRODUCE
   - Install the cloudstack agent like : https://www.sbarjatiya.com/notes_wiki/index.php/CentOS_8.x_Cloudstack_4.15_Setup_KVM_host
   
   
   - config the Network in: _/etc/sysconfig/network-scripts/_
   ```
   # cat ifcfg-eno1
   TYPE=Ethernet
   BOOTPROTO=none
   NAME=bond0-slave
   MASTER=bond0
   UUID=0fca14ce-923c-44d4-bf16-2e3430022eae
   DEVICE=eno1
   ONBOOT=yes
   
   # cat ifcfg-eno2
   TYPE=Ethernet
   BOOTPROTO=none
   NAME=bond0-slave
   MASTER=bond0
   SLAVE=yes
   UUID=7a3702c4-2ea6-497b-af46-abfa42240e43
   DEVICE=eno2
   ONBOOT=yes
   
   # cat ifcfg-bond0
   TYPE=Bond
   DEVICE=bond0
   NAME=bond0
   BONDING_MASTER=yes
   BOOTPROTO=none
   ONBOOT=yes
   HOTPLUG=no
   BONDING_OPTS="mode=1 miimon=100"
   
   # cat ifcfg-bond0.2128 
   DEVICE=bond0.2128
   NAME=bond0.2128
   ONBOOT=yes
   HOTPLUG=no
   BOOTPROTO=none
   VLAN=yes
   BRIDGE=cloudbr0
   
   
   # cat ifcfg-cloudbr0
   DEVICE=cloudbr0
   NAME=cloudbr0
   TYPE=Bridge
   ONBOOT=yes
   BOOTPROTO=none
   VLAN=yes
   IPADDR=10.67.128.1
   GATEWAY=10.67.128.254
   NETMASK=255.255.255.0
   DELAY=5
   STP=no
   
   -----------------------------------------------------------------------------------------------------------
   
   # cat ifcfg-eno3
   TYPE=Ethernet
   BOOTPROTO=none
   NAME=bond1-slave
   MASTER=bond1
   SLAVE=yes
   UUID=e35e68ed-ebee-48bf-87b7-cfa1bc832cc0
   DEVICE=eno3
   ONBOOT=yes
   
   # cat ifcfg-eno4
   TYPE=Ethernet
   BOOTPROTO=none
   NAME=bond1-slave
   MASTER=bond1
   SLAVE=yes
   UUID=09fbba74-f546-4156-9068-67fd95310866
   DEVICE=eno4
   ONBOOT=yes
   
   # cat ifcfg-bond1
   TYPE=Bond
   DEVICE=bond1
   NAME=bond1
   BONDING_MASTER=yes
   BOOTPROTO=none
   ONBOOT=yes
   HOTPLUG=no
   BRIDGE=cloudbr1
   BONDING_OPTS="mode=1 miimon=100"
   
   
   # cat ifcfg-cloudbr1
   DEVICE=cloudbr1
   NAME=cloudbr1
   TYPE=BRIDGE
   BOOTPROTO=none
   ONBOOT=yes
   DELAY=5
   STP=no
   
   ------------------------------------------------------------------------------------------------------------------
   
   # ll
   total 36
   -rw-r--r--. 1 root root 123 Jun  5 10:29 ifcfg-bond0
   -rw-r--r--. 1 root root  96 Jun  5 10:37 ifcfg-bond0.2128
   -rw-r--r--. 1 root root 139 Jun  5 10:31 ifcfg-bond1
   -rw-r--r--. 1 root root 155 Jun  5 10:40 ifcfg-cloudbr0
   -rw-r--r--. 1 root root  83 Jun  5 10:33 ifcfg-cloudbr1
   -rw-r--r--. 1 root root 124 Jun  5 10:17 ifcfg-eno1
   -rw-r--r--. 1 root root 134 Jun  5 10:19 ifcfg-eno2
   -rw-r--r--. 1 root root 134 Jun  5 10:20 ifcfg-eno3
   -rw-r--r--. 1 root root 134 Jun  5 10:22 ifcfg-eno4
   ```


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org