I have struggled with this for quite a while, but I don't seem to get it right.
This is my physical setup:
- I have a server running Proxmox behind an Unifi managed switch.
What I do want to achieve is that:
1) The management interface is on a VLAN
2) That a VM on ProxMox can be set on a specific VLAN.
3) That a VM on ProxMox is on the native vlan of the whole network (in this case this is 192.168.1.x)
For the most I have this working, except for point 3. As soon as I try to setup this up, something breaks down.
The route I think is the most succesfull is to set in the unifi app, the port on the switch with the following profile
Native network: default (this 192.168.1.x)
Allowed networks: 10 (Apps) and 40 (Labs)
If I use this /etc/network/interfaces
Combined with the unfii setup, I loos the connection with management GUI and SSH access.
The individual VMs keep functioning and are assigned to IP in VLAN10 and native VLAN.
What do I need to change/improve to also have the management interface to be available in VLAN10.
(I know security wise, I can do better - but if I fix this, I can fix that easily)
Thanks in advance for any support/help/pointers.
This is my physical setup:
- I have a server running Proxmox behind an Unifi managed switch.
What I do want to achieve is that:
1) The management interface is on a VLAN
2) That a VM on ProxMox can be set on a specific VLAN.
3) That a VM on ProxMox is on the native vlan of the whole network (in this case this is 192.168.1.x)
For the most I have this working, except for point 3. As soon as I try to setup this up, something breaks down.
The route I think is the most succesfull is to set in the unifi app, the port on the switch with the following profile
Native network: default (this 192.168.1.x)
Allowed networks: 10 (Apps) and 40 (Labs)
If I use this /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.10.100/24
gateway 192.168.10.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
# Apps VLAN
auto vmbr0.10
iface vmbr0.10 inet static
address 192.168.10.100/24
gateway 192.168.10.1
# Labs VLAN
auto vmbr0.40
iface vmbr0.40 inet static
address 192.168.40.100/24
gateway 192.168.40.1
Combined with the unfii setup, I loos the connection with management GUI and SSH access.
The individual VMs keep functioning and are assigned to IP in VLAN10 and native VLAN.
What do I need to change/improve to also have the management interface to be available in VLAN10.
(I know security wise, I can do better - but if I fix this, I can fix that easily)
Thanks in advance for any support/help/pointers.