Issues with Single Network with Multiple Tagged VLANs

billglick

New Member
Dec 7, 2023
2
1
3
I am attempting to setup a pair of Proxmox VE 8.1 servers. The networking plan had been to provide a single 100Gb connection that has several tagged VLANs for the VM Management and the various subnets used by the VMs. But I'm having trouble getting that to work.

If I have the default VLAN on the port (Juniper switch) set to the VM Management VLAN, I can get the VM Management network working, but none of the tagged VLANs. The following interfaces file works:
Code:
# /etc/network/interfaces

iface enp1s0np0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 172.29.9.68/26
        gateway 172.29.9.65
        bridge-ports enp1s0np0
        bridge-stp off
        bridge-fd 0

But if I try to add any tagged VLAN vmbr0.xxxx interfaces things break:
Code:
# /etc/network/interfaces

iface enp1s0np0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 172.29.9.68/26
        gateway 172.29.9.65
        bridge-ports enp1s0np0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

auto vmbr0.1840
iface vmbr0.1840 inet manual
#Public


And it similarly does not work if I add the VM Management network settings to the physical interface:
Code:
# /etc/network/interfaces

auto enp1s0np0
iface enp1s0np0 inet static
        address 172.29.9.68/26
        gateway 172.29.9.65

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

auto vmbr0.1840
iface vmbr0.1840 inet manual
#Public

As an alternative, I tested having all the subnets be tagged VLANs (no default VLAN). This configuration is similar to what David McKone outlines in his https://www.youtube.com/watch?v=ljq6wlzn4qo tutorial. But this configuration also does not work for me:
Code:
# /etc/network/interfaces

iface enp1s0np0 inet manual

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

auto vmbr0.1106
iface vmbr0.1106 inet static
        address 172.29.9.68/26
        gateway 172.29.9.65
#VM Management

I'm coming from a VMware background, so some of my expectations come from there. I'd ideally love to have unique, friendly names for each vmbr interface show up in Proxmox, but that doesn't seem possible.

Is there a recommended way to configure a single network connection with multiple tagged VLANs?
 
Last edited:
I think I finally have a working interfaces file for a single network connection with multiple tagged VLANs.

I'm sharing an example in case this helps anyone else.

Code:
# /etc/network/interfaces

auto enp1s0np0
iface enp1s0np0 inet manual
        mtu 9000

# VM NET 0 - TAGGED VLAN 1000
iface enp1s0np0.1000 inet manual
        mtu 9000
        vlan_raw_device enp1s0np0
        vlan_id 1000
auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp1s0np0.1000
        bridge-stp off
        bridge-fd 0
        mtu 9000
#VM NET 0

# VM NET 1 - TAGGED VLAN 1001
iface enp1s0np0.1001 inet manual
        mtu 9000
        vlan_raw_device enp1s0np0
        vlan_id 1001
auto vmbr1
iface vmbr1 inet manual
        bridge-ports enp1s0np0.1001
        bridge-stp off
        bridge-fd 0
        mtu 9000
#VM NET 1

# VM MANAGEMENT - DEFAULT/UNTAGGED
auto vmbr9
iface vmbr9 inet manual
        address 172.29.9.68/26
        gateway 172.29.9.65
        bridge-ports enp1s0np0
        bridge-stp off
        bridge-fd 0
        mtu 9000
#VM MANAGEMENT
 
  • Like
Reactions: mrkek

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!