Need to remove vlan tag using command line

I&J-networks

New Member
Oct 19, 2024
3
0
1
Hello everyone. I am using OPNsense as a virtual machine as my virtual router. I inadvertently set my vlan tag at 40 and I lost connectivity. Hence I cannot remote into my proxmox server anymore because my proxmox connectivity depends on this as my primary router.

I need to remove that vlan tag 40, but the only way I will be able to do it, is using the command line consoling into the proxmox server itself. I tried the following command but it did not work.

qm set 101 net0.bridge=vmbr0 net0.vlan-id=0

The OPNsense VM is identified as 101. I have doublechecked that my bridge is vmbr0. The command should have worked. Is this an outdated command? What am I doing wrong?
 
Hello,

You should edit this file in your case:

/etc/pve/qemu-server/101.conf

Search for this line:
Code:
net0: virtio=MAC_ADDRESS_HERE,bridge=vmbr0,queues=2,tag=40

simply remove the tag=40 with the "," in front of it:

Code:
net0: virtio=MAC_ADDRESS_HERE,bridge=vmbr0,queues=2

Then stop the VM and start it again:

qm stop 101
qm start 101

That should do the trick for you.