Спасибо, anav. Я попробовал твою конфигурацию, но, видимо, что-то сделал не так. Потом попытался следовать посту pcunite. Сделал, как там было, но оставил настройки фаервола по умолчанию, потому что при удалении всех стандартных правил видел какие-то странные логи. Сейчас роутера в сети нет — он у меня на столе. Есть ещё TP Link TL-SG108E (с поддержкой VLAN). Хочу подключить кабель с порта 4 роутера к порту 1 свича. На порту 2 свича должна быть vlan1, на порту 3 — vlan10. С порта 8 поеду на другой свич. Думаю, с настройками свича справлюсь (уже делал такое раньше). Хочу: иметь транк-порт на ether5 с такой конфигурацией, чтобы получать разные IP в двух VLAN (1 и 10). Мне понравилась идея с «приватной сетью в pvid 1». Если пинговать с каждого VLAN шлюз из другого VLAN — приходит ответ. Тут я и остановился, потому что менять настройки основного роутера каждый раз — это, мягко говоря, повод для ссоры с женой)) К NAS во втором VLAN или что-то подобное ещё не пробовал добираться. Нужно идти шаг за шагом.
# feb/19/2019 23:02:09 by RouterOS 6.43.7
# software id = 4LJ9-06RT
#
# model = RBD52G-5HacD2HnD
# serial number = 8FDE093Axxx
/interface bridge
add admin-mac=B8:69:F4:2F:x:x auto-mac=no comment=defconf name=bridge vlan-filtering=yes
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 use-peer-dns=yes user=BV1637xxx
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=ReteaAcasaMK wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-2FA7D2 wireless-protocol=802.11
/interface vlan
add interface=bridge name=ReteaAcasaIoTMK_VLAN vlan-id=10
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
add name=VLAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=guest supplicant-identity=""
/interface wireless
add disabled=no mac-address=BA:69:F4:2F:A7:D1 master-interface=wlan1 name=wlan3 security-profile=guest ssid=ReteaAcasaIoTMK
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=ReteaAcasaMK_POOL ranges=192.168.0.2-192.168.0.254
add name=ReteaAcasaIoTMK_POOL ranges=192.168.10.2-192.168.10.254
/ip dhcp-server
add address-pool=ReteaAcasaMK_POOL disabled=no interface=bridge name=ReteaAcasaMK_DHCP
add address-pool=ReteaAcasaIoTMK_POOL disabled=no interface=ReteaAcasaIoTMK_VLAN name=ReteaAcasaIoTMK_DHCP
/interface bridge port
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 pvid=10
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
add bridge=bridge interface=wlan3 pvid=10
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=bridge tagged=bridge untagged=ether5,wlan3 vlan-ids=10
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=pppoe-out1 list=WAN
add interface=ReteaAcasaIoTMK_VLAN list=VLAN
/ip address
add address=192.168.0.1/24 interface=bridge network=192.168.0.0
add address=192.168.10.1/24 interface=ReteaAcasaIoTMK_VLAN network=192.168.10.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid interface=ether1
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=192.168.0.1 gateway=192.168.0.1
add address=192.168.10.0/24 dns-server=8.8.8.8 gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/system clock
set time-zone-autodetect=no time-zone-name=Europe/Bucharest
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN