Connecting a VM to multiple VLANs

gaff

New Member
Dec 30, 2022
3
0
1
I have a vlan-aware birgde like so:

Code:
auto vmbr1
iface vmbr1 inet static
        address 192.168.3.0/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-101

I'm able to setup containers with VLAN tags:
1672591958085.png

What I'd like is to setup a container or VM that spans multiple VLANs. So I've setup a container with a single network like so:

1672592027482.png

However I cannot ping between the two containers.

I've checked and I can do the following:
  • I can ping between containers with the same VLAN tag
  • I can ping between containers that have no VLAN tag

My guess is that the VM might be seeing all the traffic, but it's not tagging the ping repsonses with the correct VLAN. Is there some way to verify this? Is there some trick to vlan-tag traffic with the same tag that it had on ingress? If not I'm guessing I'd need to setup a fairly complex set of rules within my VM to tag the traffic correctly?
 

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!