Типовая настройка Vlan на MikroTik через Bridge VLAN Filtering, которая применяется на устройствах CRS326 и старше. Так же может применяться на остальных коммутаторах и маршрутизаторах, но без аппаратной разгрузки.
Профессиональная настройка MikroTik
Без предоплаты
Telegram: @Engineer_MikroTik
Коммутаторы версии 1xx или 2xx лучше поменять, чем пытаться настроить через свитч-чип
Если у вас имеется 2 одинаковых CRS3xx или выше, то рассмотрите схему с MLAG.
Обсудить эту статью — https://vk.com/wall-26469243_256580
Настройка коммутатора
На примере CRS326 с RouterOS, настройка с нуля


/interface bridge
add name=bridgeLAN vlan-filtering=yes

В моем примере добавлены еще LACP порты, 21-22, 23-24 порты
/interface bridge port
add bridge=bridgeLAN interface=ether1
add bridge=bridgeLAN interface=ether2
add bridge=bridgeLAN interface=ether3
add bridge=bridgeLAN interface=ether4
add bridge=bridgeLAN interface=ether5
add bridge=bridgeLAN interface=ether6
add bridge=bridgeLAN interface=ether7
add bridge=bridgeLAN interface=ether8
add bridge=bridgeLAN interface=ether9
add bridge=bridgeLAN interface=ether10
add bridge=bridgeLAN interface=ether11
add bridge=bridgeLAN interface=ether12
add bridge=bridgeLAN interface=ether13
add bridge=bridgeLAN interface=ether14
add bridge=bridgeLAN interface=ether15
add bridge=bridgeLAN interface=ether16
add bridge=bridgeLAN interface=ether17
add bridge=bridgeLAN interface=ether18
add bridge=bridgeLAN interface=ether19
add bridge=bridgeLAN interface=ether20
add bridge=bridgeLAN interface=ether23-24_bonding
add bridge=bridgeLAN interface=ether21-22_bonding
Tag Vlan на интерфейсы
Здесь указываются только Current Tagged Vlan, Current Untagged не настраиваем, они появятся динамически из настройки портов.

Указываем какие Tag Vlan на портах




Untagged Vlan на интерфейсы

У портов есть 3 варианта настроек:
- admit all — Аналог гибридного порта, пропускать весь трафик (все теги vlan, в т.ч. native Vlan)
- admit only VLAN tagged — Аналог Trunk, пропускать только тэгированный трафик (все теги Vlan указанные в VLAN’s)
- admit only untagged and priority tagged — Аналог Access, пропускать указанный PVID Vlan
/interface bridge port
add bridge=bridgeLAN frame-types=admit-only-untagged-and-priority-tagged interface=ether1 pvid=102
add bridge=bridgeLAN interface=ether2 pvid=10
add bridge=bridgeLAN interface=ether3
add bridge=bridgeLAN interface=ether4
add bridge=bridgeLAN interface=ether5
add bridge=bridgeLAN interface=ether6
add bridge=bridgeLAN interface=ether7
add bridge=bridgeLAN interface=ether8
add bridge=bridgeLAN interface=ether9 pvid=200
add bridge=bridgeLAN frame-types=admit-only-untagged-and-priority-tagged interface=ether10 pvid=216
add bridge=bridgeLAN interface=ether11
add bridge=bridgeLAN interface=ether12
add bridge=bridgeLAN interface=ether13
add bridge=bridgeLAN interface=ether14
add bridge=bridgeLAN interface=ether15
add bridge=bridgeLAN interface=ether16
add bridge=bridgeLAN interface=ether17
add bridge=bridgeLAN interface=ether18
add bridge=bridgeLAN interface=ether19
add bridge=bridgeLAN interface=ether20
add bridge=bridgeLAN interface=ether23-24_bonding
add bridge=bridgeLAN frame-types=admit-only-vlan-tagged interface=ether21-22_bonding


Аналогично настраивается для остальных портов:



Аппаратную разгрузку можно увидеть по надписи Hw.Offload
Настройка маршрутизатора
На примере RB750gr3 настройка с нуля. На данной железке нет аппаратной разгрузки. Настройка аналогична коммутатору.



Так как это маршрутизатор, в Current Tagged добавляем BridgeLAN



Аппаратной разгрузки нет, не выделен Hw. Offload