[SOLVED] Vlan Aware Bridge

Nic_T2H

Member
Jan 13, 2022
3
0
6
26
Hi all,
I need help on figuring out how to correctly configure my host network configuration.

Intro:
my server has 4 GE interface and I am trying to bond them together, make them vlan aware and have management interface on a separate vlan than VMs.
The kind of bonding that I would like to be able to do is first 2 interfaces together with 802.3ad, third and forth together with the same mode, this resulting as bond1 and bond2 and then after that, last bonding using active/backup(bond0) between bond1(active) and bond2.

Now, I was able to create all bonding stuff but I have few problems on understanding how to make the bridge VLAN aware and still have connectivity on management interface. I was just playing with different options so probably last part is wrong or has something that locks me out from host.

What I have done:
Code:
auto bond2
iface bond2 inet manual
bond-slaves eno3 eno4
bond-miimon 100
bond-mode 802.3ad

auto bond1
iface bond1 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad

auto bond0
iface bondo inet manual
bond-slaves bond1 bond2
bond-miimon 100
bond-mode active-backup
bond-primary bond1

iface bond0.5 inet manual

auto vmbr0.5
iface vmbr0.5 inet static
address 10.10.10.45/25
gateway 10.10.10.2
bride-ports bond0.5
bridge-stp off
bridge-fdo
vlan-raw-device vmbr0

auto vmbr0
iface vmbr0 inet static
bridge-ports bond0
bridge-stp off
bridge-fdo
bridge-vlan-aware yes
bridge-vids 2-4094


Anyone that can point my in the correct direction or have some docs that I can read?
Thanks for your time
 
Last edited:
auto bond0
iface bondo inet manual
bond-slaves bondi bond2

Are these just copy/paste typos or should they not be bond0 and bond1 respectively
 
Last edited:
as you use vlan ware bridge, you only need a tagged vmbr0.X vlan interface , like



https://pve.proxmox.com/pve-docs/chapter-sysadmin.html
Thanks for the answer, that didn't make me achieve what I need..
The goal is to have one single bonding interface (Bond0) and make all the traffic pass from there while having the managment and vms traffic divided into different vlans.

auto bond0
iface bondo inet manual
bond-slaves bondi bond2

Are these just copy/paste typos or should they not be bond0 and bond1 respectively
Yes sorry, they were typos, I edited with correct config
 
Code:
auto bond2
iface bond2 inet manual
bond-slaves eno3 eno4
bond-miimon 100
bond-mode 802.3ad

auto bond1
iface bond1 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad

auto bond0
iface bond0 inet manual
bond-slaves bond1 bond2
bond-miimon 100
bond-mode active-backup
bond-primary bond1


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

auto vmbr0.5
iface vmbr0.5 inet static
address 10.10.10.45/25
gateway 10.10.10.2

you'll have a proxmox admin ip on vlan5

and use tag on your vm nic options to specify differents vlans for each vm.
 
  • Like
Reactions: franko5 and Nic_T2H
Code:
auto bond2
iface bond2 inet manual
bond-slaves eno3 eno4
bond-miimon 100
bond-mode 802.3ad

auto bond1
iface bond1 inet manual
bond-slaves eno1 eno2
bond-miimon 100
bond-mode 802.3ad

auto bond0
iface bond0 inet manual
bond-slaves bond1 bond2
bond-miimon 100
bond-mode active-backup
bond-primary bond1


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

auto vmbr0.5
iface vmbr0.5 inet static
address 10.10.10.45/25
gateway 10.10.10.2

you'll have a proxmox admin ip on vlan5

and use tag on your vm nic options to specify differents vlans for each vm.
Thanks that worked, it wasn't before when I tried cause I was configuring something wrong at the switch level.

Thanks for you time, really appreciate it
 

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!