Bonding LACP and VLAN trunk

Hello Everyone,
I’d like to ask how to create trunk interface with tagged traffic over bonding interface?
Bond interface is connected to the server and is working.
When I tag traffic on the server with VLAN 10 is working ok.
When I switch to tag 40 it’s not working.

This is my config:

/interface vlan - to route traffic between vlans
add interface=bridgeLocal name=SERVERS vlan-id=10
add interface=bridgeLocal name=USERS vlan-id=40

/interface bonding
add mode=802.3ad name=bond1 slaves=ether5,ether6,ether7 transmit-hash-policy=\
    layer-2-and-3
    
/interface bridge port - bridge created to server 
add bridge=bridgeLocal comment=defconf interface=ether3
add bridge=bridgeLocal comment=defconf interface=ether4
add bridge=bridgeLocal interface=bond1

/interface ethernet switch egress-vlan-tag - trunk to another switch
add tagged-ports=ether1,switch1-cpu vlan-id=10
add tagged-ports=ether1,switch1-cpu vlan-id=20

/interface ethernet switch vlan
add ports=ether1,ether3,ether4,switch1-cpu  vlan-id=10
add ports="ether1,ether3,ether4,switch1-cpu" vlan-id=20
  • Should I add slave interfaces to /interface ethernet switch vlan ?
  • Should I create /interface vlan for bonding interface ?
  • Should I add slave interfaces to /interface ethernet switch egress-vlan-tag ?

Thanks for help in advance!

Note that bonding interfaces on CRS1xx/CRS2xx are not hardware offloaded, you should use trunking interfaces instead.
You should check this guide for similar setup to yours:
https://wiki.mikrotik.com/wiki/Manual:CRS1xx/2xx_VLANs_with_Trunks
If you choose to use trunking interfaces (balance-xor), then you will need to add the trunk interface in /interface ethernet switch vlan menu.

Thank you for the answer, I will try to reconfigure it to trunk.

Regards
Mateusz