Found this article while googling:
https://mikrotik-routeros.com/2019/01/r ... n-v6-43-x/
I configured my CRS328 like in to the article above. It almost works.
/interface bridge
add comment="Vlan Switch Bridge" name=switchbridge1 vlan-filtering=yes
/interface bridge port
add bridge=switchbridge1 comment="PC - Untagged V10" interface=ether1 pvid=10
add bridge=switchbridge1 comment="PC - Untagged V10" interface=ether2 pvid=10
add bridge=switchbridge1 comment="PC - Untagged V10" interface=ether3 pvid=10
add bridge=switchbridge1 comment="PC - Untagged V10" interface=ether4 pvid=10
add bridge=switchbridge1 comment="Hybrid - Untagged V10 with tagged V20" interface=ether5 pvid=10
add bridge=switchbridge1 comment="Hybrid - Untagged V10 with tagged V20" interface=ether6 pvid=10
add bridge=switchbridge1 comment="Hybrid - Untagged V10 with tagged V20" interface=ether7 pvid=10
add bridge=switchbridge1 comment="Hybrid - Untagged V10 with tagged V20" interface=ether8 pvid=10
add bridge=switchbridge1 comment="AP - Untagged V99 with tagged V10" interface=ether9 pvid=99
add bridge=switchbridge1 comment="AP - Untagged V99 with tagged V10" interface=ether10 pvid=99
add bridge=switchbridge1 comment="AP - Untagged V99 with tagged V10" interface=ether11 pvid=99
add bridge=switchbridge1 comment="AP - Untagged V99 with tagged V10" interface=ether12 pvid=99
add bridge=switchbridge1 comment="VoIP Server - Untagged V20" interface=ether22 pvid=20
add bridge=switchbridge1 comment="Trunk Port Tagged V10,20,99" interface=ether23
add bridge=switchbridge1 comment="Trunk Port Tagged V10,20,99" interface=ether24
add bridge=switchbridge1 comment="Trunk Port Tagged V10,20,99" interface=sfp-sfpplus1
add bridge=switchbridge1 comment="Trunk Port Tagged V10,20,99" interface=sfp-sfpplus2
add bridge=switchbridge1 comment="Trunk Port Tagged V10,20,99" interface=sfp-sfpplus3
add bridge=switchbridge1 comment="Trunk Port Tagged V10,20,99" interface=sfp-sfpplus4
/interface bridge vlan
add bridge=switchbridge1 comment="Office VLAN" tagged=ether9,ether10,ether11,ether12,ether23,ether24,sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus3, \
sfp-sfpplus4 untagged=ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8 vlan-ids=10
add bridge=switchbridge1 comment="VoIP VLAN" tagged=ether5,ether6,ether7,ether8,ether23,ether24,sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus3, \
sfp-sfpplus4 untagged=ether22 vlan-ids=20
add bridge=switchbridge1 comment="Admin VLAN" tagged=ether23,ether24,sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus3,sfp-sfpplus4,switchbridge1 \
untagged=ether9,ether10,ether11,ether12 vlan-ids=99
[10.0.2.xxx] <--AP--> [Port 1 - hEX - Port 5] <--TP--> [Port 28 - CRS328 - Port 5] <--HP--> [LAN Port - GrandStream GXP2140 - PC Port] <--AP--> [PC]
AP = Access Port
TP = Trunk Port
HP = Hybrid Port
So if i just plug a phone on the ether5 interface, the phone the right IP address (10.0.10.192) from the DHCP server running on the hEX router which is hooked to the CRS328 in trunk mode.
I then added the switch rule in the switch menu to tag the phone's frames using MAC OUI wildcard:
/interface ethernet switch rule
add new-vlan-id=20 new-vlan-priority=5 ports=ether5 src-mac-address=00:0B:82:DD:9D:4C/FF:FF:FF:00:00:00 switch=switch1
The phone received an IP address from the VLAN20 (10.0.20.192) but i can't ping it and it can't reach the PBX (which sits in the 10.0.2.xxx subnet).
One note: Don't configure more than 1 bridge in the CRS328 or it will not hardware accelerate bridging.