Hi
So I'm trying to replicate my current physical networking setup using a proxmox VM. Something I've encountered is that I seem to be unable to fully provision a VM with a completely tagged vlan trunk network (which would be necessary for my existing OPNsense solution, for example).
I have a vlan-aware bridge, and I can tag every vlan except vlan 1. To enable tagging of vlan 1, I have to run this command:
to this
This fixes it and vlan1 is tagged and passed through to the VM correctly at that point.
I would like to automate doing this during VM startup, either with a script, configuration, or something similar. I know vlan 1 is supposed to be special, but I don't want to rejigger 15 years of network design to accommodate this bizarre restriction, and would rather actually just make it work the way it should.
So I'm trying to replicate my current physical networking setup using a proxmox VM. Something I've encountered is that I seem to be unable to fully provision a VM with a completely tagged vlan trunk network (which would be necessary for my existing OPNsense solution, for example).
I have a vlan-aware bridge, and I can tag every vlan except vlan 1. To enable tagging of vlan 1, I have to run this command:
bridge vlan add vid 1 dev tap101i0
once the virtual machine is up. This changes the bridge from this:
Code:
tap101i0 1 PVID Egress Untagged
2-4094
to this
Code:
tap101i0 1-4094
This fixes it and vlan1 is tagged and passed through to the VM correctly at that point.
I would like to automate doing this during VM startup, either with a script, configuration, or something similar. I know vlan 1 is supposed to be special, but I don't want to rejigger 15 years of network design to accommodate this bizarre restriction, and would rather actually just make it work the way it should.