Hi, I am having some trouble configuring my devices to correctly use VLANs.
I am already on my third attempt, and am this close to scrapping everything and trying for my fourth.
My setup consists of 6 devices:
- RB5009
- CRS309-1G-8S+
- CRS326-24G-2S+
- RB260GSP x2
- cAP ax
The connections are:
- RB5009 -> cAP ax
- RB5009 -> CRS309
- CRS309 -> CRS326
- CRS309 -> RB260GSP
- CRS309 -> RB260GSP
I have followed the "Using RouterOS to VLAN your network" guide, the VLAN with multiple SSIDs guide, the Basic VLAN Switching help page, the Bridging and Switching help page, and more.
My latest attempt has the appearance of a working network, but I know I have something wrong. To name a few issues:
- I have tried to configure management access to each device on VLAN 99; yet some devices show in the neighbours list on the WinBox login screen as being via VLAN 100. Additionally, some devices are shown in that list multiple times.
- Further to the above, the switches can see (some) of their neighbours via VLAN99 just fine.
- I have managed to lock myself out of my RB260GSP (again), by configuring the "Allowed VLAN" to be VLAN99. I do have a forwarding rule configured in the router (RB5009) which should allow me access to VLAN99, from VLAN100.
- I have needed to manually add a default route to the router (on its VLAN 99 ip), otherwise after enabling vlan-filtering I lose access.
- I cannot access the cAP via its managment IP, I need to use the dedicated ethernet port.
- While I can access some devices (CRS309/CRS326) via VLAN99, I cannot access the router RB5009 via VLAN99 (i.e. a firewall rule on the RB5009, forwarding from the VLAN100 interface to the VLAN99 interface). So a separate input rule is in place to accept from VLAN100.
- The WiFi APs wouldn't configure when both ends (CAP, CAPsMAN) were set to "bridge" as the interface, but it worked once the interface was set to "vlan99".
- The slave WiFi interface (for IoT) doesn't get used, instead a dynamic WiFi interface gets created instead.
These are the exported configurations for the router and two main switches:
RB5009
/interface bridge
add comment="LAN Bridge" frame-types=admit-only-vlan-tagged name=bridge vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] comment="WAN Port - ONT" l2mtu=1514
set [ find default-name=ether2 ] comment="LAN - PoE Temp Wireless AP" l2mtu=1514
set [ find default-name=ether3 ] comment="LAN - PoE Unused" l2mtu=1514
set [ find default-name=ether4 ] comment="LAN - PoE Unused" l2mtu=1514
set [ find default-name=ether5 ] comment="LAN - PoE Unused" l2mtu=1514
set [ find default-name=ether6 ] comment="LAN - PoE Unused" l2mtu=1514
set [ find default-name=ether7 ] comment="LAN - PoE Unused" l2mtu=1514
set [ find default-name=ether8 ] comment="LAN - PoE Unused" l2mtu=1514
set [ find default-name=sfp-sfpplus1 ] comment="LAN - Fibre Aggregator Switch" l2mtu=1514
/interface vlan
add comment="Management VLAN" interface=bridge name=vlan99-mgmt vlan-id=99
add comment="Trusted VLAN" interface=bridge name=vlan100-trusted vlan-id=100
add comment="Untrusted VLAN" interface=bridge name=vlan110-untrusted vlan-id=110
add comment="Lab VLAN" interface=bridge name=vlan120-lab vlan-id=120
add comment="IoT VLAN" interface=bridge name=vlan130-iot vlan-id=130
/caps-man configuration
add country="united kingdom" datapath.bridge=bridge installation=indoor mode=ap name=CAP-Main security.authentication-types=wpa2-psk .encryption=aes-ccm ssid=MainSSID
/interface list
add comment="WAN Interface List" name=WAN
add comment=defconf name=LAN
add comment="Management Interface List" name=MGMT
add comment="All VLANs except management" name=VLAN
/interface wifi channel
add band=5ghz-ax deprioritize-unii-3-4=yes disabled=no frequency=5500,5580,5660,5745 name="5ghz channel" width=20/40/80mhz
add band=2ghz-ax deprioritize-unii-3-4=yes disabled=no frequency=2447,2457 name="2ghz channel" width=20/40mhz
/interface wifi datapath
add bridge=bridge comment="Datapath for VLAN100" disabled=no name=dp-vlan100 vlan-id=100
add bridge=bridge comment="Datapath for VLAN130" disabled=no name=dp-vlan130 vlan-id=130
/interface wifi security
add authentication-types=wpa3-psk comment="Trusted WiFI Security" disabled=no encryption=gcmp-256 ft=yes ft-over-ds=yes name=sec-trusted
add authentication-types=wpa2-psk,wpa3-psk comment="IoT WiFI Security" disabled=no encryption=ccmp ft-over-ds=yes name=sec-iot
/interface wifi steering
add comment="Band Steering" disabled=no name=steering-main rrm=yes wnm=yes
/interface wifi configuration
add channel="5ghz channel" country="United Kingdom" datapath=dp-vlan100 disabled=no name=cfg-trusted-wifi-5ghz security=sec-trusted ssid=SSID steering=steering-main
add channel="2ghz channel" country="United Kingdom" datapath=dp-vlan130 disabled=no mode=ap name=cfg-IoT-wifi-2ghz security=sec-iot security.ft=yes ssid=SSID-IoT steering=steering-main
add channel="2ghz channel" country="United Kingdom" datapath=dp-vlan100 disabled=no mode=ap name=cfg-trusted-wifi-2ghz security=sec-trusted ssid=SSID steering=steering-main
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip dhcp-server option
add code=6 name=DNS
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add comment="Trusted IPv4 Pool" name=pool-trusted ranges=10.10.0.100-10.10.0.199
add comment="Untrusted IPv4 Pool" name=pool-untrusted ranges=10.11.0.100-10.11.0.199
add comment="Management IPv4 Pool" name=pool-mgmt ranges=10.99.0.100-10.99.0.199
add comment="Lab IPv4 Pool" name=pool-lab ranges=10.12.0.100-10.12.0.199
add comment="IoT IPv4 Pool" name=pool-IoT ranges=10.13.0.100-10.13.0.199
/ip dhcp-server
add address-pool=default-dhcp disabled=yes interface=bridge name=defconf
add address-pool=pool-mgmt interface=vlan99-mgmt lease-time=1d name=dhcp-management
add address-pool=pool-trusted interface=vlan100-trusted lease-time=1d name=dhcp-trusted
add address-pool=pool-untrusted interface=vlan110-untrusted lease-time=1d name=dhcp-untrusted
add address-pool=pool-lab interface=vlan120-lab lease-time=1d name=dhcp-lab
add address-pool=pool-IoT interface=vlan130-iot lease-time=1d name=dhcp-iot
/ppp profile
add change-tcp-mss=yes name=ISP only-one=yes use-mpls=no
/interface pppoe-client
add add-default-route=yes comment="PPPoE - Internet" disabled=no interface=ether1 max-mru=1492 max-mtu=1492 name=ISP-PPPoE profile=ISP use-peer-dns=yes user=<USERNAME>
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled comment=Main hw-supported-modes=gn master-configuration=CAP-Main
/disk settings
set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface bridge port
add bridge=bridge comment=defconf frame-types=admit-only-vlan-tagged 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="Fibre Trunk Port" frame-types=admit-only-vlan-tagged interface=sfp-sfpplus1
/ip neighbor discovery-settings
set discover-interface-list=all lldp-mac-phy-config=yes lldp-vlan-info=yes
/ipv6 settings
set accept-router-advertisements=yes
/interface bridge vlan
add bridge=bridge comment="Management VLAN" tagged=bridge,sfp-sfpplus1,ether2 vlan-ids=99
add bridge=bridge comment="Trusted VLAN" tagged=bridge,sfp-sfpplus1,ether2 vlan-ids=100
add bridge=bridge comment="Lab VLAN" tagged=bridge,sfp-sfpplus1 vlan-ids=120
add bridge=bridge comment="IoT VLAN" tagged=bridge,sfp-sfpplus1,ether2 vlan-ids=130
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add comment="PPPoE WAN Interface" interface=ISP-PPPoE list=WAN
add comment="Dedicated Management Port" interface=ether8 list=MGMT
add comment="Management VLAN" interface=vlan99-mgmt list=MGMT
add comment="Trusted VLAN" interface=vlan100-trusted list=VLAN
add comment="Untrusted VLAN" interface=vlan110-untrusted list=VLAN
add comment="Lab VLAN" interface=vlan120-lab list=VLAN
add comment="IoT VLAN" interface=vlan130-iot list=VLAN
/interface wifi capsman
set ca-certificate=auto certificate=auto enabled=yes interfaces=vlan99-mgmt
/interface wifi provisioning
add action=create-dynamic-enabled disabled=no master-configuration=cfg-trusted-wifi-5ghz supported-bands=5ghz-ax
add action=create-dynamic-enabled disabled=no master-configuration=cfg-trusted-wifi-2ghz slave-configurations=cfg-IoT-wifi-2ghz supported-bands=2ghz-n
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
add address=10.100.0.1/30 comment=Addr-Mgmt-Backup interface=ether8 network=10.100.0.0
add address=10.10.0.1/24 comment="Trusted Addresses" interface=vlan100-trusted network=10.10.0.0
add address=10.99.0.1/24 comment="Management Addresses" interface=vlan99-mgmt network=10.99.0.0
add address=10.11.0.1/24 comment="Untrusted Addresses" interface=vlan110-untrusted network=10.11.0.0
add address=10.12.0.1/24 comment="Lab Addresses" interface=vlan120-lab network=10.12.0.0
add address=10.13.0.1/24 comment="IoT Addresses" interface=vlan130-iot network=10.13.0.0
/ip cloud
set update-time=no
/ip dhcp-client
add comment=defconf disabled=yes interface=ether1 name=ether1
/ip dhcp-server network
add address=10.10.0.0/24 comment="Trusted DHCPv4 Network" dns-server=10.10.0.1 gateway=10.10.0.1
add address=10.11.0.0/24 comment="Untrusted DHCPv4 Network" dns-server=10.11.0.1 gateway=10.11.0.1
add address=10.12.0.0/24 comment="Lab Network" dns-server=10.12.0.1 gateway=10.12.0.1
add address=10.13.0.0/24 comment=IoTNetwork dns-server=10.13.0.1 gateway=10.13.0.1
add address=10.99.0.0/24 comment="Management DHCPv4 Network" dns-server=10.99.0.1 gateway=10.99.0.1
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes max-udp-packet-size=512
/ip dns static
add address=10.99.0.1 comment=defconf name=router.lan type=A
/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=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=accept chain=input comment="Allow DNS from LAN" dst-port=53 in-interface-list=!WAN protocol=tcp
add action=accept chain=input comment="Allow DNS from LAN" dst-port=53 in-interface-list=!WAN protocol=udp
add action=accept chain=input comment="Allow full management Access" in-interface-list=MGMT
add action=accept chain=input comment="Allow full management Access" in-interface=vlan100-trusted
add action=drop chain=input comment="Drop Everything Else"
add action=drop chain=input comment="defconf: drop all not coming from LAN" disabled=yes in-interface-list=!LAN
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=accept chain=forward comment="Allow Trusted -> Untrusted" connection-state=new in-interface=vlan100-trusted out-interface=vlan110-untrusted
add action=accept chain=forward comment="Allow Trusted -> Lab" connection-state=new in-interface=vlan100-trusted out-interface=vlan120-lab
add action=accept chain=forward comment="Allow Trusted -> Management" connection-state=new in-interface=vlan100-trusted out-interface=vlan99-mgmt
add action=accept chain=forward comment="Allow IoT -> Management" connection-state=new in-interface=vlan130-iot out-interface=vlan99-mgmt
add action=accept chain=forward comment="Internet Access (VLANs)" connection-state=new in-interface-list=VLAN out-interface-list=WAN
add action=accept chain=forward comment="Internet Access (Mangement)" connection-state=new in-interface-list=MGMT out-interface-list=WAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" disabled=yes ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" disabled=yes ipsec-policy=out,ipsec
add action=accept chain=forward comment="Allow Port Forwarding" connection-nat-state=dstnat
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
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
/ip service
set ftp disabled=yes
set ssh address=0.0.0.0/0
set telnet disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip ssh
set host-key-type=ed25519 password-authentication=no strong-crypto=yes
CRS309
/interface bridge
add admin-mac=D0:EA:11:A0:EA:CD auto-mac=no comment=defconf frame-types=admit-only-vlan-tagged name=bridge vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] comment="Management Backup"
set [ find default-name=sfp-sfpplus1 ] comment="Upstream - Trunk - Router"
set [ find default-name=sfp-sfpplus2 ] auto-negotiation=no comment="Downstream - Trunk - Office" speed=1G-baseX
set [ find default-name=sfp-sfpplus3 ] auto-negotiation=no comment="Downstream - Trunk - Living Room" speed=1G-baseX
set [ find default-name=sfp-sfpplus4 ] comment=Unused disabled=yes
set [ find default-name=sfp-sfpplus5 ] comment=Unused disabled=yes
set [ find default-name=sfp-sfpplus6 ] comment=Unused disabled=yes
set [ find default-name=sfp-sfpplus7 ] comment=Unused disabled=yes
set [ find default-name=sfp-sfpplus8 ] comment="Downstream - Trunk - Copper Switch"
/interface vlan
add comment="Management VLAN" interface=bridge name=vlan99-mgmt vlan-id=99
add comment="Trusted VLAN" interface=bridge name=vlan100-trusted vlan-id=100
add comment="Untrusted VLAN" interface=bridge name=vlan110-untrusted vlan-id=110
add comment="Lab VLAN" interface=bridge name=vlan120-lab vlan-id=120
/interface bridge port
add bridge=bridge comment="Upstream - Trunk - Router" frame-types=admit-only-vlan-tagged interface=sfp-sfpplus1
add bridge=bridge comment="Downstream - Trunk - Office" frame-types=admit-only-vlan-tagged interface=sfp-sfpplus2
add bridge=bridge comment="Downstream - Trunk - Living Room" frame-types=admit-only-vlan-tagged interface=sfp-sfpplus3
add bridge=bridge comment=Unused disabled=yes frame-types=admit-only-vlan-tagged interface=sfp-sfpplus4
add bridge=bridge comment=Unused disabled=yes frame-types=admit-only-vlan-tagged interface=sfp-sfpplus5
add bridge=bridge comment=Unused disabled=yes frame-types=admit-only-vlan-tagged interface=sfp-sfpplus6
add bridge=bridge comment=Unused disabled=yes frame-types=admit-only-vlan-tagged interface=sfp-sfpplus7
add bridge=bridge comment="Downstream - Trunk - Copper Switch" frame-types=admit-only-vlan-tagged interface=sfp-sfpplus8
/ip neighbor discovery-settings
set discover-interface-list=all lldp-mac-phy-config=yes lldp-vlan-info=yes
/interface bridge vlan
add bridge=bridge comment="Management VLAN" tagged=sfp-sfpplus1,sfp-sfpplus8,bridge vlan-ids=99
add bridge=bridge comment="Trusted VLAN" tagged=bridge,sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus8 vlan-ids=100
add bridge=bridge comment="Untrusted VLAN" tagged=bridge,sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus3,sfp-sfpplus8 vlan-ids=110
add bridge=bridge comment="Lab VLAN" tagged=bridge,sfp-sfpplus1,sfp-sfpplus8 vlan-ids=120
/ip address
add address=192.168.88.2/24 comment=defconf disabled=yes interface=bridge network=192.168.88.0
add address=10.99.0.2/24 comment="Management IP" interface=vlan99-mgmt network=10.99.0.0
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.99.0.1 routing-table=main suppress-hw-offload=no
CRS326
/interface bridge
add admin-mac=78:9A:18:E7:99:94 auto-mac=no comment=defconf frame-types=admit-only-vlan-tagged name=bridge port-cost-mode=short vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] comment="Patch 1 - RPI5 - DNS"
set [ find default-name=ether2 ] comment="Mgmt Backup\?"
set [ find default-name=ether3 ] comment="Patch 2 - RPI5 - Cluster"
set [ find default-name=ether5 ] comment="Patch 3 - RPI4 - Mimir"
set [ find default-name=ether6 ] comment=Unused disabled=yes
set [ find default-name=ether7 ] comment="Patch 4 - Unused" disabled=yes
set [ find default-name=ether8 ] comment="RPI2 - 01"
set [ find default-name=ether9 ] comment="Patch 5 - Unused" disabled=yes
set [ find default-name=ether10 ] comment=Unused disabled=yes
set [ find default-name=ether11 ] comment="Patch 6 - Unused" disabled=yes
set [ find default-name=ether12 ] comment="RPI2 - 02"
set [ find default-name=ether13 ] comment="Patch 7 - Unused" disabled=yes
set [ find default-name=ether14 ] comment=Unused disabled=yes
set [ find default-name=ether15 ] comment="Patch 8 - Unused" disabled=yes
set [ find default-name=ether16 ] comment="RPI2 - 03"
set [ find default-name=ether17 ] comment="Patch 9 - Unused" disabled=yes
set [ find default-name=ether18 ] comment=Unused disabled=yes
set [ find default-name=ether19 ] comment="Patch 10 - Unused" disabled=yes
set [ find default-name=ether20 ] comment="RPI2 - 04"
set [ find default-name=ether21 ] comment="Patch 11 - Unused" disabled=yes
set [ find default-name=ether22 ] comment=Unused disabled=yes
set [ find default-name=ether23 ] comment="Patch 12 - Unused" disabled=yes
set [ find default-name=ether24 ] comment="RPI2 - 05"
set [ find default-name=sfp-sfpplus1 ] comment=Upstream
set [ find default-name=sfp-sfpplus2 ] comment=Unused disabled=yes
/interface vlan
add comment="Management VLAN" interface=bridge name=vlan99-mgmt vlan-id=99
add comment=Trusted interface=bridge name=vlan100-trusted vlan-id=100
add comment="Untrusted VLAN" interface=bridge name=vlan110-untrusted vlan-id=110
add comment="Lab VLAN" interface=bridge name=vlan120-lab vlan-id=120
/interface list
add name=WAN
add name=LAN-List
add comment="Management List" name=MGMT
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=bridge comment="RPI5 - DNS" frame-types=admit-only-untagged-and-priority-tagged interface=ether1 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI5 - Cluster" frame-types=admit-only-untagged-and-priority-tagged interface=ether3 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI4 - Mimir" frame-types=admit-only-untagged-and-priority-tagged interface=ether5 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment=Unused frame-types=admit-only-untagged-and-priority-tagged interface=ether6 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 4" frame-types=admit-only-untagged-and-priority-tagged interface=ether7 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI2 - 01" frame-types=admit-only-untagged-and-priority-tagged interface=ether8 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 5" frame-types=admit-only-untagged-and-priority-tagged interface=ether9 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment=Unused frame-types=admit-only-untagged-and-priority-tagged interface=ether10 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 6" frame-types=admit-only-untagged-and-priority-tagged interface=ether11 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI2 - 02" frame-types=admit-only-untagged-and-priority-tagged interface=ether12 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 7" frame-types=admit-only-untagged-and-priority-tagged interface=ether13 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment=Unused frame-types=admit-only-untagged-and-priority-tagged interface=ether14 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 8" frame-types=admit-only-untagged-and-priority-tagged interface=ether15 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI2 - 03" frame-types=admit-only-untagged-and-priority-tagged interface=ether16 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="unused - Patch 9" frame-types=admit-only-untagged-and-priority-tagged interface=ether17 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment=Unused frame-types=admit-only-untagged-and-priority-tagged interface=ether18 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 10" frame-types=admit-only-untagged-and-priority-tagged interface=ether19 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI2 - 04" frame-types=admit-only-untagged-and-priority-tagged interface=ether20 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 11" frame-types=admit-only-untagged-and-priority-tagged interface=ether21 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment=Unused frame-types=admit-only-untagged-and-priority-tagged interface=ether22 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Unused - Patch 12" frame-types=admit-only-untagged-and-priority-tagged interface=ether23 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="RPI2 - 05" frame-types=admit-only-untagged-and-priority-tagged interface=ether24 internal-path-cost=10 path-cost=10 pvid=120
add bridge=bridge comment="Upstream Trunk" frame-types=admit-only-vlan-tagged interface=sfp-sfpplus1 internal-path-cost=10 path-cost=10
add bridge=bridge comment="Unused - SFP" interface=sfp-sfpplus2 internal-path-cost=10 path-cost=10
/ip firewall connection tracking
set udp-timeout=10s
/ip neighbor discovery-settings
set lldp-mac-phy-config=yes lldp-vlan-info=yes
/interface bridge vlan
add bridge=bridge comment="Management VLAN" tagged=sfp-sfpplus1,bridge vlan-ids=99
add bridge=bridge comment="Lab VLAN" untagged=LAN-List vlan-ids=120
add bridge=bridge comment="Trusted VLAN" untagged=LAN-List vlan-ids=100
/interface list member
add interface=ether1 list=LAN-List
add interface=ether2 list=LAN-List
add interface=ether3 list=LAN-List
add interface=ether4 list=LAN-List
add interface=ether5 list=LAN-List
add interface=ether6 list=LAN-List
add interface=ether7 list=LAN-List
add interface=ether8 list=LAN-List
add interface=ether9 list=LAN-List
add interface=ether10 list=LAN-List
add interface=ether11 list=LAN-List
add interface=ether12 list=LAN-List
add interface=ether13 list=LAN-List
add interface=ether14 list=LAN-List
add interface=ether15 list=LAN-List
add interface=ether16 list=LAN-List
add interface=ether17 list=LAN-List
add interface=ether18 list=LAN-List
add interface=ether19 list=LAN-List
add interface=ether20 list=LAN-List
add interface=ether21 list=LAN-List
add interface=ether22 list=LAN-List
add interface=ether23 list=LAN-List
add interface=ether24 list=LAN-List
add interface=sfp-sfpplus1 list=LAN-List
add interface=sfp-sfpplus2 list=LAN-List
add comment="Management Backup" interface=ether2 list=MGMT
add comment="Management VLAN" interface=vlan99-mgmt list=MGMT
/interface ovpn-server server
add mac-address=FE:8B:BB:F7:F4:9C name=ovpn-server1
/ip address
add address=10.99.0.3/24 comment="Management IP" interface=vlan99-mgmt network=10.99.0.0
add address=10.100.0.1/30 comment="Management - Backup" interface=ether2 network=10.100.0.0
/ip dhcp-client
add interface=bridge name=client1
/ip dns
set servers=192.168.2.100
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip ipsec profile
set [ find default=yes ] dpd-interval=2m dpd-maximum-failures=5
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.99.0.1 routing-table=main suppress-hw-offload=no
/ip service
set ftp disabled=yes
set telnet disabled=yes
I feel like something isn't meshing right with my understanding of VLANs, firewalls, etc; and the way Mikrotik devices implement them. If I'm honest, it is probably understanding which interface is used to access the switch.
I have seen the bridge interface mentioned as being the CPU interface. But also, all the examples say the bridge should be tagged; but surely the bridge is the "access" port and so must be Untagged. Right?
Especially if all of the other VLANs have the bridge tagged too, would explain why some of them are showing in the WinBox neighbour list. But if I don't explicitly tag the bridge in /interfaces/bridge/vlans, once filtering is enabled, the bridge gets an implicit "tagged" entry anyway.
Am I missing something fundamental here? Have I done too much, or configured things I shouldn't have?
Thanks in advance



