vlan transit between several routers

Hello all!
I dont understand how to transit tagget vlan traffic to provider via 2 intermediate routers.
This is my scheme:
Router R1 (HAP) connected to Provider (root router).

  1. On ether1 provider gives me 2 vlans (10,20).
  2. I created interface vlan10 on ether1, and route all untagged traffic to this vlan (L3vlan)
    Router R2 (CAP AC) connected to R1 on ether3
    Router R3 (HAP lite) connected to R2 on ether2
    On R3 i tagged all incoming traffic on ether4 VLAN ID20 via switch configuration.
    How can i transit vlan traffic without any changes from R3 ether4 VLAN20 to R1 ether1 Provider VLAN20?

VLAN tags are matter of L2 network (switched ethernet) and in principle don’t pass over routers. If you have to transparrently pass L2 traffic via multiple routers, then you have to establish an L2 tunnel (or multiple), e.g. EOIP. But you should really consider if you can’t go with routed traffic (e.g. IP tunnel between locations, such as wireguard or some such).

Hello! I mismatched with description. All this hardware are routers, but configuration of R2 and R3 is pretty simple.
I have disabled all L3 functions, and this routers acts as basic switch.
Here is scheme.
From documentation i find out, thats all this task need to be implemented on switch vlan. But how?
r1r2r3.jpg

The short answer is you create an access port for vlan 20 on R3. Then use trunk ports/links to get vlan 20 to R1 (which vlan is untagged on intermediate links does not matter, only that both ends of a link agree if there is an active native vlan or not, and if so which one, and it not then both vlan 10 and vlan 20 would be tagged).

If you have never worked with vlans, see this: Virtual Local Area Networks (VLANs) It won’t help you configure vlans on the MikroTik, but it will help you understand what the MikroTik documentation is referring to. And it you want wirespeed you may need to use the old switch based config instead of the vlan-filtering bridge which may not use hardware assist on some of the routers you have.

i know how implement this task with bridge vlans on mikrotik. But with switch vlan, its not trivial for me. That’s why i post this topic. Thank’s for you reply

See @anav’s New User Pathway To Config Success section P. Switch Chip Vlans