Trying to learn new vlan bridge programming

vlan-problem.jpg
I can do the attached image in the old format manually placing vlans under each eth port and using 4 bridges and manually connecting each to bridge exactly as per image.

Every time I try program the above in new bridge vlan format so I can simplify program I fail badly.
I either end up with vlan 3 and 145 on ports I don’t want or I can connect vlan 3 tagged in to main bridge

Can anyone shed some light how to do it on new format with minimal bridges

i think thats the “old way”

nowadays is preferable “Bridge VLAN Filtering” way:

https://help.mikrotik.com/docs/spaces/ROS/pages/328068/Bridging+and+Switching#BridgingandSwitching-BridgeVLANFiltering

I said that is the old way I can’t actually even draw it the new way because I can’t even establish how many bridges I need. I am thinking two but not even sure on that

One bridge to rule them all…

Seriously just one.

Everytime I try with one it fails because vlan 3 and 145 comes back out eth4. On a single bridge you seem to be only able to have all the tagged ports come out to a port there seems to be no way to remove some of them for a certain ethernet port.

On a single bridge vlan3 and 145 are on the tagged list and so when I select eth4 they come out there as well. I assume 10, 22 and 24 also end up at ethernet 1 but in that instance it isn’t fatal as the connection has vlan filters.

As I said I have tried this numerous ways but I am obviously missing something basic because I can not construct that arrangement.

Make your best effort to configure and then post your config here so we can see what you’re getting stuck on. I guarantee it can be done. VLANs on MT (new method) definitely take a bit for your mind to get comfortable with.

Just in case you don’t know, to export and post config:

From CLI - export hide-sensitive file=NameOfConfig. Then download the file, open in notepad or whatever, remove your serial number and paste the rest in a message using code formatting option.

No, thats what the tagged= setting under /interface bridge vlan controls.

On a single bridge vlan3 and 145 are on the tagged list and so when I select eth4 they come out there as well.

On single bridges each with vlan-filtering=no the pvid= setting under /interface bridge port and the entirety of /interface bridge vlan is ignored.

Something along the lines of:
/interface bridge
add name=bridge vlan-filtering=yes
/interface bridge port
add bridge=bridge frame-types=admit-only-vlan-tagged ingress-filtering=yes interface=ether1
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged ingress-filtering=yes interface=ether2 pvid=145
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged ingress-filtering=yes interface=ether3 pvid=3
add bridge=bridge frame-types=admit-all ingress-filtering=yes interface=ether4 pvid=10
add bridge=bridge frame-types=admit-all ingress-filtering=yes interface=ether5 pvid=10
add bridge=bridge frame-types=admit-all ingress-filtering=yes interface=ether6 pvid=10
add bridge=bridge frame-types=admit-all ingress-filtering=yes interface=ether7 pvid=10
add bridge=bridge frame-types=admit-all ingress-filtering=yes interface=ether8 pvid=10
/interface bridge vlan
add bridge=bridge tagged=bridge,ether1,ether5,ether6,ether7,ether8 vlan-ids=3
add bridge=bridge vlan-ids=10
add bridge=bridge tagged=ether4,ether5,ether6,ether7,ether8 vlan-ids=22
add bridge=bridge tagged=ether4,ether5,ether6,ether7,ether8 vlan-ids=24
add bridge=bridge tagged=ether1 vlan-ids=145
/interface vlan
add interface=bridge name=bridge.3 vlan-id=3
/ip address
add address=10.0.40.142/24 interface=bridge.3

@TDW your solution is EDIT probably right, and and outside chance of being wrong, lets help the OP starting from his/her config please.

The reference you should use, is → http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1

Your diagram is actually quite helpful to see which ports need to be tagged or untagged on the single bridge.
I will assume that you take the time to read the reference above.

The next step, after reading the above, is for you to at least show us what you think is correct, or in the right direction, even if it does not work and we can go from there, explaining in some detail how to achieve success and why.

/export file=anynameyouwish ( minus router serial number, any public WANIP info, keys )

What exactly is incorrect, my suggestion implements the diagram from the OP which has
ether1: 3t,145t
ether2: 145u
ether3: 3u
ether4: 10u,22t,24t
ether5: 10u,3t,22t,24t
ether6: 10u,3t,22t,24t
ether7: 10u,3t,22t,24t
ether8: 10u,3t,22t,24t
plus VLAN3 with IP 10.0.40.142/24

Probably I have incorrectly determined the nature of the diagram. It looked to me like ether5 was a trunk port.
add bridge=bridge frame-types=admit-only-vlan-tagged ingress-filtering=yes interface=ether5 comment="trunk port

However, you may have read it correct in that the left hand menu possible says ether 5 to ether 8, as opposed to eth5, and eth8 separately. :frowning:
It would help if the OP detailed what device was at the other end of each physical port.

The diagram says “ether5…ether8 4x hybrid port”, i.e. those four ports should be configured in the same way with both tagged and untagged traffic.

TDW thank you very much that appears to be correct and I will check it in situ tomorrow.

anav there was nothing to export the switch is blank empty that is all it does it’s a standard layout for a ubiquiti dream machine.
ether 1 is trunk tag in Vlan 145 internet Vlan 3 management
ether 2 is DM internet out (for a reason only know to ubiquiti they hate trunk input)
ether 3 is management out to UPS monitoring
ether 4 is Dream machine LANS coming in to be distributed
ether 4 to 8 are the APS with 10 PVID & 20,22 VIDS

Anyhow thanks to all I learnt a lot for complex layouts with new format.

Awesome… glad it worked out. Sorry to add any confusion.