Hi All,
This has been driving me nuts for weeks. Our local Mikrotik mail list hasn't been a huge amount of help - seems like it's just broken behaviour in RouterOS, and no amount of workarounds will fix it permanently. Hoping someone here has a solution I have a bunch of CRS109's both at home and in the DC, all with a similar configuration.
What I'm trying to do is fairly simple.. CRS109 with say three VLAN's.
1) vlan 100, 101, 102 all trunked on ether1.
2) vlan100 native vlan on ether2-ether8
3) wlan0 bridged to vlan 100
4) wlan0-alias1 bridged to vlan102
5) vlan101 has management IP for switch.
in 6.40.x this worked perfectly with master/slave ports. I'd simply do:
1) put ether2-8 as slaves to ether1.
2) create all three vlans under ether1
3) create two bridges - bridge_vlan100 and bridge_vlan102.
4) drop vlan100 and wlan0 into bridge_vlan100
5) drop vlan102 and wlan0-alias1 into bridge_vlan102
6) pop an IP onto vlan101
7) under /interface switch vlan, add all three vlans, and set ingress/egress translation rules to translate vlan 100 to 0 outbound, and 0 to 100 inbound on ether2-8
That has worked perfectly on multiple CRS109's for many years now.
And then I upgraded to 6.42.10 with this new bridge configuration. Oh my lord
I've tried two different ways - the 'right' way, and a slightly hacky-er way
First way:
1) Pop ether1-8 AND wlan0 and wlan0-alias1 into bridge1. PVID on ether2-8 and wlan0 is 100, PVID on wlan0-alias1 is 102
2) Using bridge vlan rules, set vlan 101 tagged on ether1. set vlan100 tagged on ether1, and wlan0, and untagged on ether2-8. set vlan102 tagged on ether1 and wlan0-alias1.
3) IN the wlan interfaces, set them to use-tag, and set vlan id to 100 for wlan0 and 102 for wlan0-alias1
4) Add a vlan101 under bridge1 and put an IP on it for management. (On the CRS109 that's also the router, I also create vlan100 and vlan102 and put IP's on those)
5) enable vlan filtering on the bridge.
This 'works', but wifi devices can't talk to ethernet devices. tcpdump on one of the ethernet devices shows that all wifi packets are arriving on the switch ports tagged as vlan100, even though vlan100 is the PVID for the ethernet ports, so should be coming out untagged. Since apparently hardware offload isn't supported on CRS 1xx devices, the whole network comes crashing down if a network connected device goes to pull more than ~50mbps across the LAN, as the CPU of the device it's connected to hits 100%.
Second way:
1) pop ether1-8 into bridge1.
2) create vlan100, vlan101, vlan102 under bridge1
3) Create bridge_vlan100 and bridge_vlan102, and put vlans 100 and 102 as ports in these bridges. set protocol to none on these bridges (otherwise spanning tree loses its mind..)
3) Pop an IP on vlan101 for management. (and on bridge_vlan100 and bridge_vlan102 on the CRS109 that runs as the router)
4) add wlan0 to bridge_vlan100 and wlan0-alias1 to bridge_vlan102. no vlan tagging set on the wireless interface configurations.
5) in /interface switch vlan, add all three vlans, and set ingress/egress translation rules to translate vlan 100 to 0 outbound, and 0 to 100 inbound on ether2-8
This works much the same as it did in 6.40, EXCEPT I *still* have the issue of wifi packets out ethernet are tagged vlan100 - it's like wifi packets, even passing through the bridge, are bypassing the switch egress translation rules?? Note: when I *first* reboot the CRS109, it WORKS. for about 5 minutes, then the translation rules stop working on wifi packets. I downgraded from 6.42.10 to 6.42.9, and it lasted about an hour. I upgraded to 6.43.7, incase it was an issue with the 6.42 branch, but had the same issue.
Does anyone know HOW to get this working? My whole reason for using CRS109's is that they're relatively inexpensive, they work great as switches and wifi AP's, and they have JUST enough routing power to happily route the 50mbps of an Australian internet connection And I have a lot of them between my house, my parents' house, and my gear in Datacenters.. (not operating as routers for the gear in datacenters though, only for switching, and OOB access routing...).
Is it just a peculiarity of the 109's that hasn't been tested with the new firmware properly since they don't do hardware offload, so haven't bothered testing fully? Is there another 'tik model that will do switching and wifi and routing that's confirmed working correctly between wifi and ethernet with multiple vlans, that I could slowly migrate to? I'm rather losing my mind at the moment
Thanks,
Damien