Hi guys,

Reading this thread I have a similar issue, but I can't find the way to adapt 
the ansible config shared on the previous email.

In my case (Ubuntu 20) I have two interfaces. One physical (eno1) with internet 
access, and eno2 is a vRack that to allow me to connect to the private network. 
If I create cloudbr0 with eno2 interface, I can create VMs, but I cannot 
download any ISO (as expected), but if I use eno1, network crashes.

What am I missing? How can I adapt the ansible configuration shared on the 
previous email to my case?

Thanks in advance!

network:
    version: 2
    ethernets:
        eno2:
            dhcp4: no
            addresses:
              - 192.168.0.1/16
        eno1:
            accept-ra: false
            addresses:
            - 2001:41d0:700:3cea::/56
            dhcp4: true
            match:
                macaddress: ac:1f:6b:df:50:78
            nameservers:
                addresses:
                - 2001:41d0:3:163::1
     bridges:
        cloudbr0:
            addresses: [192.168.1.1/16]
            gateway4: 192.168.255.255
            nameservers:
                addresses: [8.8.8.8]
            interfaces: [eno1]
            dhcp4: false
            dhcp6: false
            parameters:
                stp: false
                forward-delay: 0
        cloudbr1:
            interfaces: [eno1]
            dhcp4: false
            dhcp6: false
            parameters:
              stp: false
              forward-delay: 0
________________________________
From: [email protected] <[email protected]>
Sent: 29 January 2024 09:48
To: [email protected] <[email protected]>
Subject: AW: KVM bridges kill the network.

Hi Francisco,

here is our working config:

# This is the network config written by ansible
network:
  version: 2
  bonds:
    # mgmt
    bond0:
      interfaces:
      - eno1
      - enp137s0f0
      parameters:
        mode: balance-tlb
    # frontnet
    bond1:
      interfaces:
      - eno2
      - enp137s0f1
      parameters:
        lacp-rate: fast
        mode: 802.3ad
        transmit-hash-policy: layer3+4
  bridges:
    cloudbr0:
      interfaces: [bond0]
      addresses: [XXX/24]
      dhcp4: false
      dhcp6: false
      routes:
        - to: default
          via: XXX
      nameservers:
        addresses: [XXX]
      parameters:
        stp: false
        forward-delay: 0
    cloudbr1:
      interfaces: [bond1]
      dhcp4: false
      dhcp6: false
      parameters:
        stp: false
        forward-delay: 0

regards,
Swen

-----Ursprüngliche Nachricht-----
Von: Francisco Arencibia Quesada <[email protected]>
Gesendet: Montag, 29. Januar 2024 09:41
An: [email protected]
Betreff: KVM bridges kill the network.

Good morning guys,

I have tried many ways to configure the two bridges required by cloudstack, and 
in all my attempts this config kills the network. I will post my configuration 
here, maybe you can help me guys. I have tried following cloudstack tutorials, 
I have tried with openswitch, and the same result.
Thank you all in advance



*01-netcfg.yaml *

network:
  ethernets:
    ens1f0:
      dhcp4: false
      dhcp6: false
    enp152s0f0:
      dhcp4: false
      dhcp6: false
  bonds:
    bond0:
      addresses: [10.35.2.22/24]
      routes:
        - to: default
          via: 10.35.2.1
          metric: 100
      nameservers:
        addresses: [8.8.8.8]
        search: []
      interfaces:
        - ens1f0
        - enp152s0f0
      parameters:
        mode: 802.3ad
        transmit-hash-policy: layer3+4
        mii-monitor-interval: 100
  version: 2
---------


*02-netcfg.yaml *

network:
  ethernets:
    ens1f1:
      dhcp4: false
      dhcp6: false
    enp152s0f1:
      dhcp4: false
      dhcp6: false
  bonds:
    bond1.53:
      addresses: [10.34.5.60/23]
      interfaces:
        - ens1f1
        - enp152s0f1
      parameters:
        mode: 802.3ad
        transmit-hash-policy: layer3+4
        mii-monitor-interval: 100
  version: 2

--------

*01-netplan-cloudbr0.yaml*
network: version: 2 renderer: networkd bridges: cloudbr0: interfaces: -
bond0 parameters: stp: false forward-delay: 5
max-age: 1

 -------------


*02-netplan-cloudbr1.yaml*
network: version: 2 renderer: networkd bridges: cloudbr1: interfaces: -
bond1 parameters: stp: false forward-delay: 5 max-age: 1



Kind Regards.
--
*Francisco Arencibia Quesada.*
*DevOps Engineer*


Reply via email to