µvmbr0 is a bridge.
vmbr0.10 is a vlan interface ontop of that bridge.
You can only attach VMs to bridges, so you need to use the vmbr0 and set the "VLAN Tag" for the VMs virtio NIC. And of cause your vmbr0 needs to be vlan aware.
Hello Dunin,
Thanks for your reply.
I try your recommendation but I have an issue.
Like i said previously, my bond configurationt is as the follow (with vlan aware) :
- bond 0 --> vmbr 0
- bond 0.10 --> vmbr 0.10
- bond 0.20 --> vmbr 0.20
...
and I have assigned the vmbr with tagged vlan to Pfsense:
- vlan 10 --> vmbr 0.10
- vlan 20 --> vmbr 0.20
In this case, I can ping my PVE in all vlan from my switch, but I can't ping other device in the same vlan (PFsense or Windows, but I can ping between the two device). So for exemple in vlan 10:
Ping between :
- Switch and PVE --> ok
- Switch and PFsense or Windows -- not ok
- PFsense and windows --> ok
I change my netowrk configuration like the follow and It's work:
- bond 0 --> vmbr 0
- vmbr 010 (name) --> vmbr 0.10 (port bridge)
- vmbr 020 (name)--> vmbr 0.20 (port bridge)
But i would like to know why It doen't work with my first setup.
Here, my configuration with 2 configuration
Code:
auto lo
iface lo inet loopback
iface enp40s0 inet manual
auto enp37s0f0
iface enp37s0f0 inet manual
mtu 9000
auto enp37s0f1
iface enp37s0f1 inet manual
mtu 9000
auto enp38s0f0
iface enp38s0f0 inet manual
mtu 9000
auto enp38s0f1
iface enp38s0f1 inet manual
mtu 9000
auto bond0
iface bond0 inet manual
bond-slaves enp37s0f0 enp37s0f1 enp38s0f0 enp38s0f1
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
mtu 9000
#LACP vers le switch
auto bond0.10
iface bond0.10 inet manual
mtu 9000
auto bond0.20
iface bond0.20 inet manual
mtu 9000
auto bond0.30
iface bond0.30 inet manual
mtu 9000
auto bond0.40
iface bond0.40 inet manual
mtu 9000
auto bond0.50
iface bond0.50 inet manual
mtu 9000
auto bond0.100
iface bond0.100 inet manual
mtu 9000
auto vmbr200
iface vmbr200 inet static
address X.X.X.X/24
gateway X.X.X.X
bridge-ports enp40s0
bridge-stp off
bridge-fd 0
auto vmbr0
iface vmbr0 inet manual
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
mtu 9000
#lacp bond0
auto vmbr020
iface vmbr020 inet static
bridge-ports bond0.20
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000
auto vmbr030
iface vmbr030 inet static
bridge-ports bond0.30
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000
auto vmbr040
iface vmbr040 inet static
bridge-ports bond0.40
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000
auto vmbr050
iface vmbr050 inet static
bridge-ports bond0.50
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000
auto vmbr100
iface vmbr100 inet static
bridge-ports vmbr0.100
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000
auto vmbr010
iface vmbr010 inet static
bridge-ports bond0.10
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
mtu 9000
So what is the right setup for bond and vlan configuration ?