Hello. I wanted to ask here first, because I don't have a monitor connected to my proxmox machine and I don't think I'll be able to remotely revert if I screw this up.
There's a helpful reddit post here, but my case is slightly different - https://www.reddit.com/r/Proxmox/comments/15ijbbi/vlan_tagging_proxmox_unifi/
In Unifi I have
I think I need to change the bottom part to
But I'm not sure. It's different from the reddit post in that:
There's a helpful reddit post here, but my case is slightly different - https://www.reddit.com/r/Proxmox/comments/15ijbbi/vlan_tagging_proxmox_unifi/
In Unifi I have
- Default VLAN. ID 1. Subnet 10.0.0/24. Nearly all devices connected to this. My route (UDM) is 10.0.0.1. Proxmox is 10.0.0.3
- VPNTest VLAN. ID 5. Subnet 192.168.5.0/24. One device connected. I want to add VMs to this VLAN
Code:
cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface enp2s0 inet manual
iface enp3s0 inet manual
iface enp4s0 inet manual
iface enp5s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.0.3/24
gateway 10.0.0.1
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
I think I need to change the bottom part to
Code:
auto vmbr0
iface vmbr0 inet static
bridge-ports enp2s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 1-4092
auto vmbr0.1
iface vmbr0.1 inet static
address 10.0.0.3/24
gateway 10.0.0.1
But I'm not sure. It's different from the reddit post in that:
- the first 3 digits of the VLANs are different (10.x.x.x vs 192.x.x.x)
- I think I need to include vid 1 in "bridge-vids 1-4092" (rather than 2-4092)
- His gateway address is different from his UDM router subnet (10.2.1.1 vs 10.1.1.10/24). I think I need to make these the same? (10.0.0.1 and 10.0.0.0/24)