One bridge per VLAN

lildergs

New Member
Jul 7, 2017
14
0
1
33
I have my installation currently set up so that vmbr0 includes my primary NIC (eno1).

VLAN tagged traffic comes into eno1 and so I can select which VLAN goes to each virtual NIC for my VMs by setting the VLAN tag field on each virtual NIC.

I would like to transition to a setup where I have one vmbrN per VLAN coming in to eno1. This would, in theory, allow me to create a bridge between eno1.100 and eno2 where eno2 gets untagged traffic passed from eno1.100.

I have already set up eno1.100, eno1.200, eno1.300, etc. (via sourcing interfaces.d in /etc/network/interfaces)

I have tried creating bridges with these virtual NICs but the GUI does not allow me to proceed -- I get this error:
bridge 'vmbr1' - unable to find bridge port 'eno1.100' (500)

I have restarted networking.service as well as rebooted and while the VLAN NICs show in the CLI I can't make bridges to other NICs in the GUI.

Before I go and experiment any advise on how to proceed?
 
if it can help this my configuration with bond / bridge and vlan.

Code:
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet manual
        slaves eth1 eth0
        bond_miimon 100
        bond_mode balance-tlb


auto bond0.2
iface bond0.2 inet manual
        vlan-raw-device bond0

auto bond0.3
iface bond0.3 inet manual
        vlan-raw-device bond0

auto bond0.4
iface bond0.4 inet manual
        vlan-raw-device bond0

auto bond0.10
iface bond0.10 inet manual
        vlan-raw-device bond0

auto bond0.1
iface bond0.1 inet manual
        vlan-raw-device bond0

auto vmbr2
iface vmbr2 inet static
        address  192.168.2.141
        netmask  255.255.255.0
        gateway  192.168.2.254
        bridge_ports bond0.2
        bridge_stp off
        bridge_fd 0
auto vmbr3
iface vmbr3 inet static
        address  192.168.3.141
        netmask  255.255.255.0
        bridge_ports bond0.3
        bridge_stp off
        bridge_fd 0

auto vmbr4
iface vmbr4 inet manual
        bridge_ports none
        bridge_stp off
        bridge_fd 0

   bridge_ports bond0.4
   bridge_stp off
   bridge_fd 0

auto vmbr10
iface vmbr10 inet static
        address  10.10.10.140
        netmask  255.255.255.0
        bridge_ports bond0.10
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge_ports bond0.1
        bridge_stp off
        bridge_fd 0

auto vmbr1:0
iface vmbr1:0 inet static
        address  192.168.1.140
        netmask  255.255.255.0

auto vmbr1:1
iface vmbr1:1 inet static
        address  192.168.1.141
        netmask  255.255.255.0
 
How do I then assign my VMs to one of these manually created bridges?
GUI doesn't allow.
 
well, il the interface you choose the vmbr you want to connect the vm. you have the list of all the bridge

https://ibb.co/dPMLAp

https://ibb.co/jzsDwU
dPMLAp
 
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!