Привет! У меня есть роутер PFSense и 3 коммутатора Mikrotik (CRS112-8P, CRS326-24G-2S+RM — оба подключены по оптике к CRS328-24P-4S+RM), 3 точки доступа Unifi — по одной на каждый коммутатор. Я пытаюсь настроить 3 VLAN с комбинированной схемой: точки доступа ставят теги в зависимости от того, к какой Wi-Fi сети подключается клиент, плюс тегирование по портам. Тестирую на CRS112-8P-4S.
Проблема в том, что когда включаю egress tagging (исходящее тегирование) для VLAN-трафика с точки доступа, трафик фильтруется (без тегов — работает, как мне и нужно), а трафик с порта интерфейса 3 тегируется корректно. Но если включить egress tagging для точки доступа, то она получает весь трафик — и с тегами, и без, а тегирование на интерфейсе порта перестаёт работать. На этом коммутаторе trunk-порт — SFP9. Мне нужно, чтобы порт 3 был тегирован VLAN ID 20, а точка доступа могла передавать и принимать VLAN ID 20 и 30, а также нетегированный трафик.
Буду очень благодарен за любую помощь.
Ниже видно, что в /interface ethernet switch egress-vlan-tag есть правило “add disabled=yes tagged-ports=sfp9 vlan-id=20”, которое и вызывает описанную проблему.
# nov/22/2022 18:45:11 by RouterOS 6.49.6
# software id = DXMK-IZJY
#
# model = CRS112-8P-4S
# serial number = HCB*******
/interface bridge
add admin-mac=DC:2C:6E:E6:47:9E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] advertise=10M-half,10M-full,100M-half,100M-full poe-out=forced-on speed=100Mbps
set [ find default-name=ether3 ] poe-out=off
set [ find default-name=ether5 ] disabled=yes
set [ find default-name=ether6 ] disabled=yes
set [ find default-name=ether7 ] disabled=yes
set [ find default-name=ether8 ] disabled=yes
set [ find default-name=sfp9 ] advertise=1000M-full auto-negotiation=no
set [ find default-name=sfp10 ] auto-negotiation=no rx-flow-control=auto tx-flow-control=auto
set [ find default-name=sfp11 ] disabled=yes
set [ find default-name=sfp12 ] disabled=yes
/interface vlan
add interface=bridge name=vlan20 vlan-id=20
add interface=bridge name="vlan30 Guest" vlan-id=30
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge comment=defconf interface=ether1
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=sfp9
add bridge=bridge comment=defconf interface=sfp10
add bridge=bridge comment=defconf interface=sfp11
add bridge=bridge comment=defconf interface=sfp12
/interface bridge vlan
add bridge=bridge disabled=yes vlan-ids=1-4094
/interface ethernet switch egress-vlan-tag
add disabled=yes tagged-ports=sfp9 vlan-id=20
add disabled=yes tagged-ports=sfp9 vlan-id=30
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=20 ports=ether3,ether4
/interface ethernet switch mac-based-vlan
add new-customer-vid=20 src-mac-address=00:40:AD:BD:43:63
/interface ethernet switch port
set 1 egress-vlan-tag-table-lookup-key=according-to-bridge-type
set 2 allow-fdb-based-vlan-translate=yes
/interface ethernet switch vlan
add disabled=yes ports=ether3 vlan-id=20
/interface list member
add interface=ether1 list=LAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=ether6 list=LAN
add interface=ether7 list=LAN
add interface=ether8 list=LAN
add interface=sfp9 list=LAN
add interface=sfp10 list=LAN
add interface=sfp11 list=LAN
add interface=sfp12 list=LAN
Проблема в том, что когда включаю egress tagging (исходящее тегирование) для VLAN-трафика с точки доступа, трафик фильтруется (без тегов — работает, как мне и нужно), а трафик с порта интерфейса 3 тегируется корректно. Но если включить egress tagging для точки доступа, то она получает весь трафик — и с тегами, и без, а тегирование на интерфейсе порта перестаёт работать. На этом коммутаторе trunk-порт — SFP9. Мне нужно, чтобы порт 3 был тегирован VLAN ID 20, а точка доступа могла передавать и принимать VLAN ID 20 и 30, а также нетегированный трафик.
Буду очень благодарен за любую помощь.
Ниже видно, что в /interface ethernet switch egress-vlan-tag есть правило “add disabled=yes tagged-ports=sfp9 vlan-id=20”, которое и вызывает описанную проблему.
# nov/22/2022 18:45:11 by RouterOS 6.49.6
# software id = DXMK-IZJY
#
# model = CRS112-8P-4S
# serial number = HCB*******
/interface bridge
add admin-mac=DC:2C:6E:E6:47:9E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] advertise=10M-half,10M-full,100M-half,100M-full poe-out=forced-on speed=100Mbps
set [ find default-name=ether3 ] poe-out=off
set [ find default-name=ether5 ] disabled=yes
set [ find default-name=ether6 ] disabled=yes
set [ find default-name=ether7 ] disabled=yes
set [ find default-name=ether8 ] disabled=yes
set [ find default-name=sfp9 ] advertise=1000M-full auto-negotiation=no
set [ find default-name=sfp10 ] auto-negotiation=no rx-flow-control=auto tx-flow-control=auto
set [ find default-name=sfp11 ] disabled=yes
set [ find default-name=sfp12 ] disabled=yes
/interface vlan
add interface=bridge name=vlan20 vlan-id=20
add interface=bridge name="vlan30 Guest" vlan-id=30
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge comment=defconf interface=ether1
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=sfp9
add bridge=bridge comment=defconf interface=sfp10
add bridge=bridge comment=defconf interface=sfp11
add bridge=bridge comment=defconf interface=sfp12
/interface bridge vlan
add bridge=bridge disabled=yes vlan-ids=1-4094
/interface ethernet switch egress-vlan-tag
add disabled=yes tagged-ports=sfp9 vlan-id=20
add disabled=yes tagged-ports=sfp9 vlan-id=30
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=20 ports=ether3,ether4
/interface ethernet switch mac-based-vlan
add new-customer-vid=20 src-mac-address=00:40:AD:BD:43:63
/interface ethernet switch port
set 1 egress-vlan-tag-table-lookup-key=according-to-bridge-type
set 2 allow-fdb-based-vlan-translate=yes
/interface ethernet switch vlan
add disabled=yes ports=ether3 vlan-id=20
/interface list member
add interface=ether1 list=LAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=ether6 list=LAN
add interface=ether7 list=LAN
add interface=ether8 list=LAN
add interface=sfp9 list=LAN
add interface=sfp10 list=LAN
add interface=sfp11 list=LAN
add interface=sfp12 list=LAN
