[SOLVED] Unable to use VLAN tagging on Proxmox

Ahmet Bas

Well-Known Member
Aug 3, 2018
74
0
46
32
I have installed Proxmox 6 and want to set0-up the Proxmox with VLAN tagging. The example configuration on the wiki did not work, the configuration which I already tried can be found below:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0.3043
iface vmbr0.3043 inet static
address 192.168.0.102
netmask 255.255.255.0
gateway 192.168.0.1

auto vmbr0
iface vmbr0 inet manual
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes

If I create a bond interface with eno1 and eno2 it's working:

auto bond0
iface bond0 inet manual
slaves eno1 eno2
bond_miimon 100
bond_mode 802.3ad
bond_xmit_hash_policy layer3+4
bond-miimon 100
bond-mode 802.3ad

auto bond0.3043
iface bond0.3043 inet manual
vlan-raw-device bond0

auto vmbr3043
iface vmbr3043 inet static
address 192.168.0.102
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports bond0.3043
bridge_stp off
bridge_fd 0


So my question is what am I missing to get eno1 work with VLAN tagging?
 
Hi,

you mix two different technics in the first config.
VLAN aware means that the bridge handles VLANs, but you create another bridge that is a VLAN device.
This does not work. Instead, you should create a VLAN dev
Code:
iface vlan100
    address 192.168.100.1/24
    vlan-id 100
    vlan-raw-device vmbr0
 
Hi,

you mix two different technics in the first config.
VLAN aware means that the bridge handles VLANs, but you create another bridge that is a VLAN device.
This does not work. Instead, you should create a VLAN dev
Code:
iface vlan100
    address 192.168.100.1/24
    vlan-id 100
    vlan-raw-device vmbr0

Okay, so it should be something like this?

iface vlan100
address 192.168.100.102/24
gateway 192.168.100
vlan-id 100
vlan-raw-device vmbr0

auto vmbr0
iface vmbr0 inet manual
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes

The first configuration which I used which is not working comes from the Proxmox wiki.
 
Hi,

you mix two different technics in the first config.
VLAN aware means that the bridge handles VLANs, but you create another bridge that is a VLAN device.
This does not work. Instead, you should create a VLAN dev
Code:
iface vlan100
    address 192.168.100.1/24
    vlan-id 100
    vlan-raw-device vmbr0

I forgot to mention it. The switch port is in trunk mode and does not have a native VLAN and only accepts tagged traffic.
 
Try to add this at the bridge section
Code:
bridge-vids 2-4094

after applying use this command.
Code:
bridge vlan vmbr0
 

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!