I had similar problems, this config is working now in my servers:
network: version: 2 bonds: # mgmt bond0: interfaces: - ens1f0 -
enp152s0f0 parameters:
lacp-rate: fast mode: 802.3ad transmit-hash-policy: layer3+4
#mii-monitor-interval:
100 # storage bond1: interfaces: - ens1f1 - enp152s0f1 parameters: lacp-rate:
fast mode: 802.3ad transmit-hash-policy: layer3+4 #mii-monitor-interval:
100 bridges: cloudbr0: interfaces: [bond0] addresses: [10.35.2.22/24] dhcp4:
false dhcp6: false routes: - to: default via: 10.35.2.1 nameservers: addresses:
[8.8.8.8,1.1.1.1] parameters: stp: false forward-delay: 0 cloudbr1: interfaces:
[bond1] addresses: [10.34.5.60/23] dhcp4: false dhcp6: false parameters: stp:
false forward-delay: 0 ethernets: enp152s0f0: {} enp152s0f1: {}
ens1f0: {} ens1f1:
{}
On Thu, Feb 1, 2024 at 6:04 PM Javi Moncayo <[email protected]> wrote:
> Hi guys,
>
> I am using Ubuntu 20 I have two interfaces. One physical (eno1) with
> internet access, and eno2 is a vRack for the private network.
>
> On the configuration below, if I use eno2 as interface for both bridges, I
> can create VMs and they can ping each other but I do not have internet
> access. However, if I set the interface to eno1, the network crashes...
>
> What am I missing? How should my configuration look like?
>
> Thanks in advance!
>
> network:
> version: 2
> ethernets:
> eno2:
> dhcp4: no
> addresses:
> - 192.168.0.1/16
> eno1:
> accept-ra: false
> addresses:
> - xxxx:xxxx:xxx:xxxx::/56
> dhcp4: true
> match:
> macaddress: ac:1f:6b:df:50:78
> nameservers:
> addresses:
> - xxxx:xxxx:x:xxx::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
>
> eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet xx.xxx.xx.xxx netmask 255.255.255.0 broadcast xx.xxx.xx.xxx
> inet6 xxxx::xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
> inet6 xxxx:xxxx:xxx:xxxx:: prefixlen 56 scopeid 0x0<global>
> ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
> RX packets 441753 bytes 142093871 (142.0 MB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 425365 bytes 66792387 (66.7 MB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.0.1 netmask 255.255.0.0 broadcast 192.168.255.255
> ether ac:1f:6b:df:50:79 txqueuelen 1000 (Ethernet)
> RX packets 29006 bytes 2390888 (2.3 MB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 24554 bytes 1715980 (1.7 MB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
--
*Francisco Arencibia Quesada.*
*DevOps Engineer*