ProxmoxGuide
Isometric dark-blue diagram of a stone bridge carrying color-coded network lanes from a server rack and switch out to four islands of glowing cubes.
networking

Proxmox VLAN Config: vmbr0, Linux Bridges, and OVS

Configure a Proxmox VLAN from switch uplink to guest NIC. Keep vmbr0 management reachable, verify the VLAN, and recover from the host console.

By ProxmoxGuide Editorial · ·Updated · 8 min read

Enable VLAN awareness on the Proxmox VE Linux bridge vmbr0, allow the guest VLAN on the switch uplink and bridge, and set the same VLAN tag on the VM or container NIC. For this example, VLAN 20 carries guest traffic while the host keeps its existing untagged management IP on vmbr0. Open vSwitch (OVS) is another option if you need features such as OpenFlow or virtual-switch traffic export.

What the installer gives you and why it is right

vmbr0 is the Linux bridge the Proxmox VE installer creates. It acts as a software switch between guest network interfaces and the host’s selected uplink. In the default untagged setup, the host IP address and gateway are on vmbr0. The physical NIC is a bridge port. Proxmox network guide

For installation and the initial management address, see the Proxmox VE install guide.

VLAN-aware bridges versus a bridge per VLAN

With a VLAN-aware Linux bridge, several guest VLANs can share vmbr0. The guest NIC’s tag selects one of the VLANs the bridge carries. A per-VLAN design gives each VLAN a separate bridge, such as vmbr20 over eno1.20. A guest attached to that bridge uses the VLAN selected by the bridge. Proxmox network guide

In that per-VLAN example, eno1 is the Linux VLAN parent. With ifupdown2, the name eno1.20 supplies both the parent and VLAN ID. A custom name such as guest20 needs vlan-raw-device eno1 and vlan-id 20. ifupdown2 VLAN interface implementation

Carry guest VLAN 20 and keep management untagged

Start with a working bridge and a switch port you can administer. This example assumes eno1 is the uplink, VLAN 20 already has a gateway, and the bridge has no other tagged guests. Use your actual NIC and addresses. If the bridge already carries guest VLANs, keep their IDs in the list.

WhereGuest VLAN 20Existing host management
Switch port facing eno1Allow VLAN 20 as tagged traffic on the trunk.Keep the existing management VLAN native and untagged on that port.
Proxmox Linux bridge vmbr0Set bridge-vlan-aware yes and include 20 in bridge-vids.Leave the address and gateway on vmbr0.
VM or container NICSet Bridge to vmbr0 and VLAN Tag to 20.The host keeps using its existing management address.

The switch and bridge must both carry VLAN 20 as tagged on the uplink. Proxmox presents that VLAN as untagged Ethernet to a guest NIC with a single tag. Switch VLAN behavior · Proxmox guest VLANs

Here is the change to the existing vmbr0 stanza. The address and gateway lines illustrate the untagged management configuration and should keep their existing values. Proxmox bridge examples

 auto vmbr0
 iface vmbr0 inet static
     address 192.168.10.2/24
     gateway 192.168.10.1
     bridge-ports eno1
     bridge-stp off
     bridge-fd 0
+    bridge-vlan-aware yes
+    bridge-vids 20

How not to lock yourself out

Save the working configuration and apply the bridge change

  1. Sign in at a local or out-of-band console before touching the switch or bridge. Save the current switch port settings and confirm that any pending host network changes have been resolved. Run the backup from the host console as root. Use a fresh backup name if the path already exists. Proxmox network staging · Debian copy command

    cp /etc/network/interfaces /etc/network/interfaces.before-guest-vlan
  2. On the physical switch, add tagged VLAN 20 to the Proxmox-facing port and retain the existing untagged management network. Open a fresh Proxmox web session from your admin workstation to confirm that the switch change preserved host access. Switch trunk and native VLAN behavior

  3. Apply the bridge change on the Proxmox host with ifupdown2. Keep the console open during the reload because a network change can disconnect your admin session. Proxmox live reload instructions

    • GUI. Under the node’s System → Network, edit vmbr0, enable VLAN aware, and add 20 to VLAN IDs in the advanced fields, keeping any existing IDs. Saving the edit stages it in /etc/network/interfaces.new. Review Pending changes and click Apply Configuration. If VLAN IDs is missing, clear your pending edit with Revert before using the manual path. Node menu · Bridge editor · Network view and apply controls

    • Manual. Edit the active /etc/network/interfaces using the diff above, then run the following command from the host console. Proxmox live reload instructions

      ifreload -a

Recover from the host console

If host access drops, restore the saved switch port settings if they changed during the failed cutover. At the local or out-of-band console, check whether /etc/network/interfaces.new still contains the failed edit. If it does, move it aside before restoring the working file. Proxmox can activate a staged file on reboot. Proxmox network staging · Debian move command

mv /etc/network/interfaces.new /etc/network/interfaces.failed-vlan

Restore the saved config as root. Run the reload after the copy succeeds, then reconnect to the original management address from your admin workstation. Debian copy command · Proxmox live reload instructions

cp /etc/network/interfaces.before-guest-vlan /etc/network/interfaces
ifreload -a

Tagging guests

Once the bridge change is live, edit the VM’s network device or the container’s network interface. Set Bridge to vmbr0 and VLAN Tag to 20. The corresponding guest NIC settings are bridge=vmbr0,tag=20. VM network editor · Container network editor · Proxmox guest VLANs

Start with a test guest. Its ordinary interface uses the VLAN 20 subnet, for example an unused address such as 192.168.20.100/24 with gateway 192.168.20.1. DHCP on VLAN 20 also works if that network supplies it. For this single-tag setup, leave VLAN tagging to Proxmox. Proxmox guest VLANs

Use a guest trunk when a single virtual NIC needs to carry several tagged VLANs, such as for a router VM. For example, use trunks=20;30 on the Proxmox NIC and leave its single VLAN Tag blank for this trunk example. Allow both IDs on the switch uplink and in bridge-vids, then configure the VLAN interfaces inside the guest. Proxmox guest trunking · VM option schema · LXC option schema

When a VLAN does not work

Before moving the host’s management IP, verify both ends of the change. Open a fresh Proxmox web session at the original address from your admin workstation. From the running Linux test guest, ping its VLAN 20 gateway. Substitute your actual gateway address and use one that answers ICMP. iputils ping manual

ping -c 3 192.168.20.1

On the Proxmox host, inspect the live Linux bridge VLAN table. Proxmox troubleshooting commands · iproute2 bridge manual

bridge -compressvlans vlan show

Illustrative rows for this configuration with a running test container. Match the uplink and guest-facing port names on your host.

port          vlan-id
eno1          1 PVID Egress Untagged
              20
veth100i0     20 PVID Egress Untagged
  • Uplink eno1. VLAN 20 appears without Egress Untagged, so it leaves this port tagged. PVID classifies untagged ingress, and Egress Untagged sends that VLAN without a tag. Here 1 is the Linux-side ID for untagged traffic. The switch can use its own management VLAN ID for those untagged frames. iproute2 bridge manual · Native VLAN behavior
  • Guest port veth100i0. VLAN 20 is the PVID and leaves the port untagged, so the guest’s ordinary Ethernet interface sends and receives traffic in VLAN 20. iproute2 bridge manual · Proxmox bridge troubleshooting example

If VLAN 20 is absent from the uplink row, review bridge-vids and confirm the change is live. If the guest row has the wrong VLAN, check its bridge and tag. If both rows are correct and the gateway fails, check tagged VLAN 20 on the switch, the guest’s IP and gateway, and any VLAN interface inside the guest. Use the Proxmox troubleshooting guide for a wider check.

Move host management to a tagged VLAN

This is a separate change for a standalone host. Start after the original management address and the VLAN 20 guest both pass their checks. In this example, VLAN 30 has its own management subnet and gateway. Keep the previous untagged switch network available for recovery.

  1. Allow tagged VLAN 30 on the switch uplink and add 30 to bridge-vids while leaving the host address on vmbr0. Apply and repeat the host and guest checks. Use a test guest on VLAN 30 to verify the new gateway and confirm that your admin workstation can reach that subnet. Switch trunk behavior · Proxmox guest and host VLANs
  2. Save a new copy of the now-working interfaces file as /etc/network/interfaces.before-tagged-management. From the console, make vmbr0 manual and put the management address and default gateway on vmbr0.30. Remove the old address and gateway lines from vmbr0 and add the vmbr0.30 stanza shown below. Debian copy command · Proxmox tagged management example
  3. If /etc/hosts maps the node’s hostname to the original IP, save a copy of that file and update the mapping to the new IP. Apply the interfaces edit with ifreload -a from the console. Proxmox installer hostname mapping · Proxmox live reload instructions
auto vmbr0
iface vmbr0 inet manual
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 20 30

auto vmbr0.30
iface vmbr0.30 inet static
    address 192.168.30.2/24
    gateway 192.168.30.1

Open the Proxmox web interface at the new address and repeat the VLAN 20 guest’s gateway check. If you lose access, follow the console recovery steps with the interfaces.before-tagged-management backup. Restore your saved hostname mapping if you changed it.

Linux bridge or Open vSwitch

Use the Linux bridge for the switch-to-guest setup above. Open vSwitch is also supported and makes sense when you need an OVS feature such as OpenFlow control, NetFlow, or sFlow. OVS configures VLAN membership on its own ports and uses tools such as ovs-vsctl. Proxmox VLAN modes · OVS features and tools · OVS VLAN configuration

Bonds under the bridge

If your uplink is already a Linux bond, bond0 can be the bridge port in place of eno1. The host IP still belongs on vmbr0 for untagged management or on the bridge’s VLAN interface for tagged management. For an LACP bond, use a matching switch aggregation group. Proxmox bond and VLAN examples

Cluster and storage caveats

For a cluster or a host with dedicated storage links, check which interfaces carry that traffic before changing the uplink or management path. See the Proxmox cluster setup guide for Corosync network planning.

Next steps

For rules controlling traffic between guests or to the host, see Proxmox firewall configuration.

Evidence and limits. This guide uses the Proxmox VE upstream network guide on master, with pve-docs 9.2.19 in the upstream changelog. The steps were not run on a Proxmox host.

Sources

  1. Proxmox VE upstream network guide
  2. Proxmox VE documentation changelog
  3. Open vSwitch VLAN FAQ
  4. Open vSwitch feature overview
  5. ifupdown2 VLAN interface implementation
  6. Proxmox VE node Network menu
  7. Proxmox bridge editor fields
  8. Proxmox Network view and pending changes
  9. Debian coreutils cp manual
  10. Debian coreutils mv manual
  11. Proxmox VM network editor
  12. Proxmox container network editor
  13. Proxmox VM network option schema
  14. Proxmox LXC network option schema
  15. iproute2 bridge manual
  16. iputils ping manual source
  17. Proxmox VE installer hostname configuration

Related