I had this router using the new bridge vlan configuration found in 6.41, but I was loosing the hardware acceleration so I decided to do the Switch conf. Here is what I have,
/interface bridge
add comment="VLANs bridge" name=br-switch vlan-filtering=no protocol-mode=none
/interface ethernet
set [ find default-name=ether1 ] comment="MainRouter Trunk - VLAN20, 99"
set [ find default-name=ether2 ] comment="Trunk - VLAN20, 99"
set [ find default-name=ether3 ] comment="Trunk - VLAN20, 99"
set [ find default-name=ether4 ] comment="Trunk - VLAN20, 99"
set [ find default-name=ether5 ] comment="Management - VLAN99"
/interface vlan
add interface=br-switch name=VLAN20 comment=Houses vlan-id=20
add interface=br-switch name=VLAN99 comment=Management vlan-id=99
/interface bridge port
add bridge=br-switch interface=ether1 hw=yes
add bridge=br-switch interface=ether2 hw=yes
add bridge=br-switch interface=ether3 hw=yes
add bridge=br-switch interface=ether4 hw=yes
add bridge=br-switch interface=ether5 hw=yes
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=VLAN99
Now, in the normal switch configuration, one would do the following,
/interface ethernet switch port
set ether1 vlan-mode=secure vlan-header=add-if-missing
set ether2 vlan-mode=secure vlan-header=always-strip default-vlan-id=20
set ether3 vlan-mode=secure vlan-header=always-strip default-vlan-id=20
set ether4 vlan-mode=secure vlan-header=always-strip default-vlan-id=20
set ether5 vlan-mode=secure vlan-header=always-strip default-vlan-id=99
set switch1-cpu vlan-mode=secure vlan-header=leave-as-is
But since this is a Gigabyte switch, one cannot set the “vlan-header” and I have to do the following,
/interface ethernet switch port
set ether1 vlan-mode=secure
set ether2 vlan-mode=secure
set ether3 vlan-mode=secure
set ether4 vlan-mode=secure
set ether5 vlan-mode=secure default-vlan-id=99
set switch1-cpu vlan-mode=secure
The problem is that now the trunks are working well, but not the ether5 interface. Since Mikrotik is kind of a mess when trying to figure out VLANs and the switch chip, I even tried adding the bridge vlan configuration in case that was the thing missing,
/interface bridge vlan
add bridge=br-vlans tagged=br-vlans,ether1,ether2,ether3,ether4 vlan-ids=20
add bridge=br-vlans tagged=br-vlans,ether1,ether2,ether3,ether4 untagged=ether5 vlan-ids=99
But nothing gives me access to the VLAN99 in ether5. Has someone managed to get this working?