Bond on VLAN's

SudsMaker

New Member
Nov 25, 2023
15
0
1
TN / US
I am hoping someone can get me past this hurtle.
I have 4 NICs with 2 on different VLANs.

So NIC's 1 & 2 will be on VLAN50 (Management)
NICS 3 & 4 will be on VLAN100 (Virtual Machines)

I have tried to understand the documentation but something's just not sinking in for me.
https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_bond

Attached is the config where I tried to setup 2 VLANs with the NICs.
I do not have a switch that supports LACP.

Any help would be great.
 

Attachments

Last edited:
Hi.

You're trying to setting up VLAN on physical NIC, you should before set up the bond and then configure the VLAN over it.

Something like this:
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto eno2
iface eno2 inet manual

auto eno3
iface eno3 inet manual

auto eno4
iface eno4 inet manual

auto bond0
iface bond0 inet manual
    bond-slaves eno1 eno2
    bond-miimon 100
    bond-mode balance-alb
    bond-xmit-hash-policy layer2+3

auto bond1
iface bond1 inet manual
    bond-slaves eno3 eno4
    bond-miimon 100
    bond-mode balance-alb
    bond-xmit-hash-policy layer2+3

iface bond0.50 inet manual
# VLAN 50 on bond0

iface bond1.100 inet manual
# VLAN 100 on bond1

auto vmbr0
iface vmbr0 inet static
    address 192.168.100.4/24
    gateway 192.168.100.1
    bridge-ports bond0.100
    bridge-stp off
    bridge-fd 0
# Bridge on VLAN 100

auto vmbr1
iface vmbr1 inet static
    address 10.10.50.4/24
    bridge-ports bond1.50
    bridge-stp off
    bridge-fd 0
# Bridge on VLAN 50

source /etc/network/interfaces.d/*

Be carefoul about the gateway of vmbr1 that is not on the same network of the bridge and in any case you cannot assign multiple default gateways (you have already set up gateway for vmbr0).
Usually you don't assign an IP address to Proxmox nodes on VM bridges (of course if it is not required for some other reasons).
You don't need "bridge-vlan-aware yes" beacause VLAN aware bridges are used when you want to tag the VLAN on the VM (not your case).

Why you choose to tag packets if you don't have multiple VLAN on the same interfaces?
Shouldn't be easier to set up the ports on the switch in access mode with untagged VLAN?
 
Last edited:

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!