[SOLVED] Vlan tagging not working

Hi,

I can't seem to get vlan tagging working properly.

This does work

Code:
iface enp129s0f0 inet manual
    mtu 9000

auto vmbr6
iface vmbr6 inet static
    address 10.0.100.11/24
    gateway 10.0.100.5
    bridge-stp off
    bridge-fd 0
    mtu 9000

This does not

Code:
iface enp129s0f0 inet manual
    mtu 9000

auto vmbr6
iface vmbr6 inet static
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 100
    mtu 9000

auto vmbr6.100
    address 10.0.100.11/24
    gateway 10.0.100.5
    mtu 9000

Vlan 100 on the switch should be properly working, as the working setting pings the upstream vlan IP.

Can't figure out how to properly tag.

Same thing on a trunk port with multiple linux vlans for proxmox cluster, ceph storage and so on.
 
Last edited:
Sorry, the trunk port is working, I can ping upstream vlan 80 IP from a vlan 80 access port in the switch, and from inside proxmox too. Also can ping promxox from the PC on the access port.
Still can't do it on vlan 100, and from proxmox I can't ping the upstream vlan 100 IP.

Code:
auto enp5s0f0
iface enp5s0f0 inet manual
        mtu 9000
#bond-trunk

auto enp129s0f1
iface enp129s0f1 inet manual
        mtu 9000
#bond-trunk

auto enp129s0f0
iface enp129s0f0 inet manual
        mtu 9000
#vlan100 - Management

auto bond2
iface bond2 inet manual
        bond-slaves enp129s0f1 enp5s0f0
        bond-miimon 100
        bond-mode 802.3ad
        mtu 9000
#trunk

auto vmbr5
iface vmbr5 inet manual
        bridge-ports bond2
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 10 20 30 40 50 60 70 80 100
        mtu 9000
#trunk

auto vmbr5.20
iface vmbr5.20 inet static
        address 10.0.20.11/24
        vlan-raw-device vmbr5
        mtu 9000
#vlan20 - Proxmox Cluster

auto vmbr5.40
iface vmbr5.40 inet static
        address 10.0.40.11/24
        vlan-raw-device vmbr5
        mtu 9000
#vlan40 - Ceph Public

auto vmbr5.60
iface vmbr5.60 inet static
        address 10.0.60.11/24
        vlan-raw-device vmbr5
        mtu 9000
#vlan60 - pfSense Sync

auto vmbr5.80
iface vmbr5.80 inet static
        address 10.0.80.11/24
        vlan-raw-device vmbr5
        mtu 9000
#vlan80

auto vmbr6
iface vmbr6 inet manual
        bridge-ports enp129s0f0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 100
        mtu 9000
#vlan100 - Management

auto vmbr6.100
iface vmbr6.100 inet static
        address 10.0.100.11/24
        gateway 10.0.100.5
        vlan-raw-device vmbr6
        mtu 9000
#vlan100 - Management
 
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!