[SOLVED] Proxmox & bonding - used bond for containers/vms?

ncage

Member
Jan 28, 2022
7
0
6
49
So I'm sure this is because of lack of knowledge of proxmox network config but anyways. I set up a bond in networking between two different network ports. I went. into my switch and bonded two ports using LACP. I then setup the bond in proxmox which worked just fine. I can even login to proxmox with the static IP i assigned the bond. The question is I want VMs/Containers to be able to use this bond for their networking (bond0) but the only choices I get for networking are the bridges, not the bond?

1645672133134.png

1645671935987.png

As you can see i can only see the bridges i created granted i realize it does specifically say "Bridge" but I assuming you can use a bond somehow with either a vm or container?

thanks....
 
Last edited:
You create a bond and then tell the bridge to use the bond instead of the NICs. Then you attach your guests to that bridge, which uses the bond, which uses the NICs. And you should give that bridge the IP and gateway and not the bond. So connect your vmbr0 to bond0 and not to enp5s0 or enp5s0d1.
 
Last edited:
  • Like
Reactions: ncage
You create a bond and then tell the bridge to use the bond instead of the NICs. Then you attach your guests to that bridge, which uses the bond, which uses the NICs. And you should give that bridge the IP and gateway and not the bond. So connect your vmbr0 to bond0 and not to enp5s0 or enp5s0d1.
Thanks a lot, @Dunuin . When you setup the bond was an IP field just like when your setting up a bridge so I wrongly assumed it was required. I simply deleted the static IP address & then created a bridge with the bond. Now i'm good to go. I appreciate your help
 
where I just see the question. I also asked myself the other day if this is the right way to use LACP. The interesting thing I noticed is that on the Proxmox host my LACP (2x 10Gbit) is displayed as 20 Gbit, the bridge is also displayed with 20Gbit, but on the host only 10Gbit is displayed. On every ESXI and Hyper-V machine the VM 20Gbit is shown on the network adapter, only in the Proxmox VM's not, neither on Windows nor on Linux.

Does anyone know what is the reason for this?
 

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!