Router and switch on same ports

CCR2004-16G-2S+, ROS 7.1.2

Is it possible to do something like this:

ether1 - VLAN 10 tagged, VLAN 20 tagged
ether2 - VLAN 10 tagged, VLAN 30 tagged

VLAN 20 is used as router uplink, 10.10.10.10/24
VLAN 30 is used as router downlink, 20.20.20.20/24
VLAN 10 should traverse as tagged between ether1 and ether2

?

Nothing special required to do that. Just simple VLAN tagging. I can’t explain how to do that in the newer bridge configuration because my setup does not use a bridge at all. Sorry.

Something like this:

/interface bridge
add name=mybridge vlan-filtering=yes
/interface bridge port
add bridge=mybridge frame-types=admit-only-vlan-tagged ingress-filtering=yes interface=ether1
add bridge=mybridge frame-types=admit-only-vlan-tagged ingress-filtering=yes interface=ether2
/interface bridge vlan
add bridge=mybridge tagged=ether1,ether2 vlan-ids=10
add bridge=mybridge tagged=mybridge,ether1 vlan-ids=20
add bridge=mybridge tagged=mybridge,ether2 vlan-ids=30

/interface vlan
add name=vlan20 interface=mybridge vlan-id=20
add name=vlan30 interface=mybridge vlan-id=30
/ip address
add interface=vlan20 address=10.10.10.10/24
add interface=vlan30 address=20.20.20.20/24

The first part does the “wiring” … and mybridge interface has to be tagged member of all vlans where router has to participate. The second part prepares interfaces for router to participate in particular vlans. Without the second part, router only acts as smart switch.