Truenas VM on proxmox with lacp

Albi95

New Member
Mar 9, 2023
8
0
1
I am new to proxmox, I installed and connected proxmox system to a managed switch using two ethernet cables,
and made a linux bond with layer2+3, And theoretically two clients should each get 1gbps bandwidth to the VM,
But they both are capped to a single 1Gbps connection to the VM inside proxmox.
What am i doing wrong
Any help would appreciated.
thank you..
 
Can you show your /etc/network/interfaces contents in [code][/code] tags?

Is the switch configured to match the LACP config? Ports and hash policy?
 
iface lo inet loopback

auto enp7s0
iface enp7s0 inet manual

auto enp10s0
iface enp10s0 inet manual

auto bond0
iface bond0 inet manual
bond-slaves enp10s0 enp7s0
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3

auto vmbr0
iface vmbr0 inet static
address 192.168.1.4/24
gateway 192.168.1.1
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
###
And on the switch hash policy SRC MAC + DST MAC
I tried both active and passive modes on the switch too
 
And on the switch hash policy SRC MAC + DST MAC
AFAIU you should use hash policy 2 and not 2+3 as only the MAC address is used to decide where to send traffic through.
 
You only have two clients, so two MAC adresses each belonging to a different VM? I don't know if layer2 guarantees you that each will always use a different interface.

I think the bonding algorithm simply takes both the source- and destination MAC adresses and calculates an interface number (in your case 1 or 2) depending on the ports. That means, if you are 'unlucky' with the MACs, then the algorithm gives you the same interface for both sessions.

Maybe increase the granularity by using layer3+4? The same has to be set on the switch, of course.