VLANs in Proxmox

There are a bunch of ways to do VLANs in Proxmox.

First off you need to decide if your Proxmox host needs to be on the VLAN. If it doesn't, just tag the VLAN in the interface on the VM config. Otherwise, here are is a working example:

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual


auto vmbr0
iface vmbr0 inet static
    address  10.0.1.30
    netmask  255.255.255.0
    gateway  10.0.1.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
#VM Network

auto bond0.5
iface bond0.5 inet manual
        vlan-raw-device eth0

auto bond0.55
iface bond0.55 inet manual
        vlan-raw-device eth0

auto vmbr1
iface vmbr1 inet static
    address  10.100.1.30
    netmask  255.255.255.0
    bridge_ports eth0.5
    bridge_stp off
    bridge_fd 0
#Storage Network, VLAN 5

So here you have two options.

  • If you attach "vmbr1" to a VM, it will be stuck on VLAN 5.
  • Or, you could attach "vmbr0" to the VM, and then tag traffic on VLAN 222 via the screenshot from above.

From this, you could do the same thing with your second network interface.

/r/homelab Thread