Hi all,
This is probably very easy for any regular networking engineer, but I'm stumped.
I am trying to set up a pve host on vlan 2 and I want to be able to configure VMs/CTs to be on any of the available VLANs. I'm just not getting it to work.
I've set everything up as I think it should be configured.
interfaces:
My switch has the port configured as trunk.
This doesn't work.
If I configure the switch to access, set the port vlan 2 and set the IP on the vmbr0, I can ping the IP. If I change the port vlan to something else, I won't get through.
So, it seems to be (but I might be wrong) that there is no problem with the network/switch/router configuration. Traffic is routed between vlan 1 and 2, and access port with vlan set works.
I've also configured the port as trunk, setting native vlan to 2, leaving the IP on vmbr0 (vmbr0 is still vlan aware). I can communicate with the host. If I start a vm, with VLAN tag 1, it will still get dhcp from vlan 2, so that won't work for my scenario.
If I then recreate the vlan vmbr0.2, move the IP to that device and apply, my pings to the host IP start failing. However, the VM still receives the DHCP response (from vlan2), suggesting to me that the bridge is not vlan aware and only the native vlan is used untagged.
This is probably very easy for any regular networking engineer, but I'm stumped.
I am trying to set up a pve host on vlan 2 and I want to be able to configure VMs/CTs to be on any of the available VLANs. I'm just not getting it to work.
I've set everything up as I think it should be configured.
interfaces:
Code:
iface eno1 inet manual
iface vmbr0 inet static
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr0.2
iface vmbr0.2 inet static
address 10.2.1.10/24
gateway 10.2.1.1
My switch has the port configured as trunk.
This doesn't work.
If I configure the switch to access, set the port vlan 2 and set the IP on the vmbr0, I can ping the IP. If I change the port vlan to something else, I won't get through.
So, it seems to be (but I might be wrong) that there is no problem with the network/switch/router configuration. Traffic is routed between vlan 1 and 2, and access port with vlan set works.
I've also configured the port as trunk, setting native vlan to 2, leaving the IP on vmbr0 (vmbr0 is still vlan aware). I can communicate with the host. If I start a vm, with VLAN tag 1, it will still get dhcp from vlan 2, so that won't work for my scenario.
If I then recreate the vlan vmbr0.2, move the IP to that device and apply, my pings to the host IP start failing. However, the VM still receives the DHCP response (from vlan2), suggesting to me that the bridge is not vlan aware and only the native vlan is used untagged.