mixing interface vlans and bond?

benoitc

Member
Dec 21, 2019
173
9
23
does anyone know if it's possible to mix vlans and bonds ? Say I have the following:

Code:
iface eno1 inet manual

auto eno1.100
iface eno1.100 inet static
        address 10.100.1.101/24
        
iface eno1 inet manual

auto eno2.100
iface eno2.100 inet static
        address 10.100.1.101/24
        
auto bond0
iface bond0 inet manual
      bond-slaves eno1 eno2
      bond-miimon 100
      bond-mode 802.3ad
      bond-xmit-hash-policy layer2+3

iface bond0.102 inet manual
      
auto vmbr0
iface vmbr0 inet static
        address  10.102.1.2/24
        gateway  10.1002.1.1
        bridge-ports bond0.102
        bridge-stp off
        bridge-fd 0

Would it works? The idea is beeing able to run corosync on 2 different networks while usin the bound for VM networking
 
Wouldn't it be more useful not to bond them and use one NIC for corosync and one NIC for everything else? If you use the same bond for corosync and other stuff isolated by vlans it still could be possible that a backup (or something like that) is overloading the bond and your corosync times out.

If I remember it right you can't create a linux vlan on a NIC that is part of a bond. But linux vlans ontop of a bond should work.
 
Wouldn't it be more useful not to bond them and use one NIC for corosync and one NIC for everything else? If you use the same bond for corosync and other stuff isolated by vlans it still could be possible that a backup (or something like that) is overloading the bond and your corosync times out.
That true but then I will loose the redundancy at this level for VMs communication. It would be interresting to also have way to fail over one of the interface when needed for it. Maybe using BGP?
If I remember it right you can't create a linux vlan on a NIC that is part of a bond. But linux vlans ontop of a bond should work.
not tested yet but you're probablry right there, the doc is not very explicit about it though :) But yeah that doesn't seems clean also.
 
QoS for the VLAN might help to prefer the corosync traffic but I don't know it that is enough. Maybe someone else got more experience with that.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!