LACP + trunk on two ethernet ports

scooby2

New Member
May 4, 2024
1
0
1
Can anyone share a working /etc/network/interfaces file from Proxmox 8.2 that has two network interfaces, uses LACP w/ trunk and has the system IP on a tagged interface?

I've been trying to setup a demo to show Proxmox is where we should move to with ESXI being too pricy in 2025.

Thanks,
Scooby2
 
Combine those two examples: https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_vlan
https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_bond

So for example:
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

auto bond0
iface bond0 inet static
      bond-slaves eno1 eno2
      bond-miimon 100
      bond-mode 802.3ad
      bond-xmit-hash-policy layer2+3

auto vmbr0.5
iface vmbr0.5 inet static
        address  10.10.10.2/24
        gateway  10.10.10.1

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

With that PVE would be available in VLAN 5 using 10.10.10.2 over a LACP bond.
Guests attached to vmbr0 could use all VLANs of your trunk. What VLAN the virtual NIC should be part of you define by setting the "vlan tag" for each virtual NIC.
Or keep the "vlan tag" empty if the VM should be able to access all VLANs to manage VLANs within the guestOS.
 
Last edited:
  • Like
Reactions: takeokun

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!