Correct me if I am wrong, you shouldn't ever need more than one bridge (when it comes to setting multiple vlans) with ROS 6.4.1+. This is how other switches operate when it comes to the prevailing standards.
-----
I've converted my multiple bridges (1 vlan per bridge, plus the default bridge) setting to one bridge for all vlans and the default lan, with vlan filtering.
My use case is capsman (with my cap serving multiple vlans: guest, kids, office, etc) with the choice of "capsman forwarding" (all traffic flows through capsman), rather than "local forwarding" (local cap traffic are routed and served locally at the cap). I am still not 100% regarding capsman-fwding vs local-fwding and when I should choose which.
Port setting on my hap-ac2:
ether1 = wan
ether2-5 = native untagged vlan 1 (default lan)
trunk to cap(s)= wlan2-5g
Note on wlan2-5g interface:
1. It carries the default lan and vlans, just like a trunk between switches.
2. I am testing wireless trunking.
Experts pls correct me if parts of my code is in error.
/interface vlan
add interface=bridge1 name="VL 201 Guest" vlan-id=201
add interface=bridge1 name="VL 202 Fam" vlan-id=202
add interface=bridge1 name="VL 203 Kids" vlan-id=203
add interface=bridge1 name="VL 204 Office" vlan-id=204
add interface=bridge1 name="VL 205 Staff" vlan-id=205
"Pre-6.4.1 ROS: separate bridges per vlan"
/ip pool
add name="Pool - Default" ranges=192.168.88.100-192.168.88.199
add name="Pool - 201 Guest" ranges=192.168.201.100-192.168.201.199
add name="Pool - 202 Fam" ranges=192.168.202.100-192.168.202.199
add name="Pool - 203 Kids" ranges=192.168.203.100-192.168.203.199
add name="Pool - 204 Office" ranges=192.168.204.100-192.168.204.199
add name="Pool - 205 Staff" ranges=192.168.205.100-192.168.205.199
/ip dhcp-server
add address-pool="Pool - Default" disabled=no interface=bridge1 name="DHCP Server 1 - Default"
add address-pool="Pool - 202 Fam" disabled=no interface="VL 202 Fam" name="DHCP Server 2 - Fam"
add address-pool="Pool - 201 Guest" disabled=no interface="VL 201 Guest" name="DHCP Server 3 - Guest"
add address-pool="Pool - 203 Kids" disabled=no interface="VL 203 Kids" name="DHCP Server 4 - Kids"
add address-pool="Pool - 204 Office" disabled=no interface="VL 204 Office" name="DHCP Server 5 - Office"
add address-pool="Pool - 205 Staff" disabled=no interface="VL 205 Staff" name="DHCP Server 7 - Staff"
"Pre-6.4.1 ROS: Interface set to the different the vlan bridges"
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=192.168.88.1 gateway=192.168.88.1 netmask=24
add address=192.168.201.0/24 gateway=192.168.201.1 netmask=24
add address=192.168.202.0/24 gateway=192.168.202.1 netmask=24
add address=192.168.203.0/24 gateway=192.168.203.1 netmask=24
add address=192.168.204.0/24 gateway=192.168.204.1 netmask=24
add address=192.168.205.0/24 gateway=192.168.205.1 netmask=24
/interface bridge
add admin-mac="your-device-mac" auto-mac=no name=bridge1 vlan-filtering=yes
"Pre-6.4.1 ROS: No bridge vlan filtering.
If using old method with new ROS, you do not need to enable bridge vlan filtering, as each vlan is on its own bridge.
Bridge vlan filtering is needed only when multiple vlans are assigned to the same bridge."
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface="wlan1 - 2.4g"
add bridge=bridge1 interface="wlan2 - 5g"
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
"Pre-6.4.1 ROS: separate bridges assigned to each vlan interface"
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-vlan=yes
"Note: I don't know what use-ip-firewall-for-vlan does. Enabled it because it sounds like I should."
/interface bridge vlan
add bridge=bridge1 tagged=bridge1 untagged=ether2,ether3,ether4,ether5 vlan-ids=201,202,203,204,205
"This single line links everything together. Do or die. Make or break. Yeah baby or hasta la vista baby.
I tagged my ports wrong and locked myself out. I had to factory reset. Good thing I had backup."
Coming into Mikrotik right now is harder than normal because when you need to setup vlans, as in many best-practice setups, you have the old vs new (pre/post ROS 6.4.1) way of setting up your bridge. As a new user many of the guides I see online/youtube use the old way and I had to work out myself whether and when I needed bridge-vlan-filtering enabled.
To clarify once more for new users, you need bridge-vlan-filtering when this is the condition (you have multiple vlans tagged to one bridge):
zz1.png
I might make a new thread to be helpful to other newbies. Again, I am a new user (only a few days into mikrotik). Everything I say, experts pls correct if I am mistaken.
----
I've just had an epiphany. As a new user, I had to fit the concept of mikrotik's "bridge" into my world view. I believe I have it.
Think of a bridge as a managed switch. In my hap-ac2 with 5 ethernet ports I can have a:
1. 5-port managed switch (ether1-5 = bridge1)
2. Wan-router and 4 port-switch (ether1 = wan, ether2-5 = bridge1)
3. A 2 and a 3 port switch (ether1,2,3 = bridge 1, ether 4,5 = bridge2)
4. 6-port managed switch where the 6th port is a wireless interface (eth1-5 & wlan1 = bridge1)
5. ...whatever combination you can imagine
You do not have the required permissions to view the files attached to this post.