VLAN tagging for host and guest

lukesky333

New Member
Mar 14, 2025
1
0
1
Austria (Europe)
Hello,

I'm new here and, as expected, I have a question. :-)

Is it possible to tag the Proxmox host interface AND the guest interface?

Example:
The Proxmox server has only one network connection (Linux Bridge), which is tagged with VLAN ID 120.

On the guest system (Debian), three virtual network adapters should be created via the previously created Linux Bridge interface. These adapters should also be tagged with IDs 120, 121, and 122.

Is this possible, and if so, how? I've tried many things, but nothing has worked.
Thank you in advance for your help!
 
Create a VLAN-aware bridge on the host (e.g. vmbr0) and then a sub-interface vmbr0.120 where you configure the VLAN.

In the guest, either configure the parent bridge (vmbr0) as network device and then configure the VLANs inside the guest - or attach 3 network devices to the guest, one per VLAN
 
  • Like
Reactions: carles89
Hi lukeshy333:
Another way is you can create a vmbr? (Linux bridge) for each vlan interface, and then connect vm to corresponding vmbr? the /etc/network/interfaces will looks as following.
Code:
auto lo
iface lo inet loopback

auto enp65s0f1
iface enp65s0f1 inet manual

auto enp65s0f1.100
iface enp65s0f1.100 inet manual

auto enp65s0f1.101
iface enp65s0f1.101 inet manual

auto vmbr0
iface vmbr0 inet manual
        bridge-ports enp65s0f1
        bridge-stp on
#Default VLAN 1

auto vmbr100
iface vmbr100 inet manual
        bridge-ports enp65s0f1.100
        bridge-stp on
#VLAN 100

auto vmbr101
iface vmbr101 inet static
        address 172.16.101.65/24
        bridge-ports enp65s0f1.101
        bridge-stp on
#VLAN 101
 
Last edited: