I am trying to set up multiple VLANS to segment various VMs. However I am having an issue once I edit the /etc/network/interfaces to configure the first VLAN becuase once I edit it proxmox can no longer access the internet or ping any site. My goal is the set up four VLANS see below and use the Linux VLAN and assign it to the VM. I have a unifi switch that is configured I now just need to get proxmox configred to send it through.
VLAN10
VLAN20
VLAN30
VLAN40
auto lo
iface lo inet loopback
iface enp2s0f0 inet manual
iface enp2s0f1 inet manual
auto vmbr0.10
iface vmbr0.10 inet static
address 172.16.10.1/24
gateway 172.16.10.1
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp2s0f0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 10,20,30,40,50
VLAN10
VLAN20
VLAN30
VLAN40
auto lo
iface lo inet loopback
iface enp2s0f0 inet manual
iface enp2s0f1 inet manual
auto vmbr0.10
iface vmbr0.10 inet static
address 172.16.10.1/24
gateway 172.16.10.1
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp2s0f0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 10,20,30,40,50