Tagged packets seem to work properly regardless. As well, untagged packets seem to be forwarded appropriately when the destination is an external device. However, when the destination is the RB750G itself, untagged packets are received on the master port, instead of on the VLAN interface.
For VLAN ID 7 in the below example, tagged packets are received on the interface called "vlan7". However, untagged packets are received on the interface called ether2-trunk. My question: How can I make tagged and untagged vlan7 packets received by the RB show up on the same vlan7 interface?
P.S. I know this is easy to solve using bridges however the whole point of using switch chip was for better performance.
Code: Select all
# RouterOS 4.16
#
/interface ethernet
set 0 mac-address=00:0C:42:A1:44:53 master-port=ether2-trunk mtu=1500 name=ether1-slave
set 1 mac-address=00:0C:42:A1:44:54 master-port=none name=ether2-trunk
set 2 mac-address=00:0C:42:A1:44:55 master-port=ether2-trunk name=ether3-slave
set 3 mac-address=00:0C:42:A1:44:56 master-port=ether2-trunk name=ether4-slave
set 4 mac-address=00:0C:42:A1:44:57 master-port=ether2-trunk name=ether5-slave
/interface ethernet switch
set switch1 mirror-source=none mirror-target=none name=switch1
/interface ethernet switch port
set (unknown) vlan-header=leave-as-is vlan-mode=fallback
set (unknown) vlan-header=add-if-missing vlan-mode=secure
set (unknown) vlan-header=leave-as-is vlan-mode=fallback
set (unknown) vlan-header=leave-as-is vlan-mode=fallback
set (unknown) vlan-header=leave-as-is vlan-mode=fallback
/interface ethernet switch rule
add copy-to-cpu=no disabled=no mirror=no new-vlan-id=7 redirect-to-cpu=no switch=switch1 vlan-header=not-present \
ports=ether1-slave,ether2-trunk,ether3-slave,ether4-slave,ether5-slave
/interface ethernet switch vlan
add disabled=no ports=ether1-slave,ether2-trunk,ether3-slave,ether4-slave,ether5-slave,cpu switch=switch1 vlan-id=7
/interface vlan
add arp=enabled comment="" disabled=no interface=ether2-trunk l2mtu=1520 mtu=1500 name=vlan7 use-service-tag=no vlan-id=7