I have a basic understanding how VLANs work. I have some problems to set up my hEX correctly. I'm running a Mikrotik hEX (MT7621) with RouterOS 6.44.2.
How can I put the hEX as a default gateway into multiple VLANs?
For example, I have two VLANs. VLAN 10 and VLAN 11. VLAN 10 uses 192.168.10.0/24. VLAN 11 uses 192.168.11.0/24. Now I want to have the hEX to be 192.168.10.1 as gateway in VLAN 10, and 192.168.11.1 as gateway in VLAN 11. I'm using ether1 as internet gateway over WAN. ether2 and ether3 should forward both VLANs 10 and 11. On ether2 and ether3 are switches connected, which are working correctly.
I tried to put ether2 and ether3 into a bridge named "bridge1", enabled VLAN filtering (as described in the Wiki tutorial), assigned the bridge vlan ports, and the VLANs worked perfectly for the two switches which are connected to ether2 and ehter3. The hEX forwared all normal frames and VLAN frames as expected. Now I also wanted to have the hEX itself reachable via VLANs as a default gateway. But since the bridge can only have one PVID it sends the frames only into either one or the other VLAN. This works to have the hEX in VLAN 10. But then it's not reachable via VLAN 11, or vice-versa.
I also tried to add one VLAN interface assigned to ether2 and VLAN 10, added other VLAN interface assigned to ether3 and VLAN 10, and put the both VLAN interfaces into a bridge, the same for VLAN 11, but that did also not work.
How can I achieve this?